mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-04 12:13:37 +02:00
20 lines
471 B
Java
20 lines
471 B
Java
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
public class TileEntityPickupStopper extends TileEntityImpl {
|
|
|
|
public TileEntityPickupStopper() {
|
|
super(ModTileEntities.PICKUP_STOPPER);
|
|
}
|
|
|
|
public float getRadius() {
|
|
return this.redstonePower / 2F;
|
|
}
|
|
|
|
@Override
|
|
public void onRedstonePowerChange(int newPower) {
|
|
super.onRedstonePowerChange(newPower);
|
|
if (!this.world.isRemote)
|
|
this.sendToClients();
|
|
}
|
|
}
|