2018-11-23 17:11:35 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
|
2020-01-21 23:02:39 +01:00
|
|
|
import net.minecraft.tileentity.TileEntityType;
|
|
|
|
|
2018-11-23 17:11:35 +01:00
|
|
|
public class TileEntityPickupStopper extends TileEntityImpl {
|
|
|
|
|
2020-01-21 23:02:39 +01:00
|
|
|
public TileEntityPickupStopper(TileEntityType<?> tileEntityTypeIn) {
|
|
|
|
super(tileEntityTypeIn);
|
|
|
|
}
|
|
|
|
|
2018-11-23 17:11:35 +01:00
|
|
|
public float getRadius() {
|
|
|
|
return this.redstonePower / 2F;
|
|
|
|
}
|
2019-01-27 13:57:34 +01:00
|
|
|
|
|
|
|
@Override
|
2019-03-19 17:21:06 +01:00
|
|
|
public void onRedstonePowerChange(int newPower) {
|
|
|
|
super.onRedstonePowerChange(newPower);
|
2019-01-27 13:57:34 +01:00
|
|
|
if (!this.world.isRemote)
|
|
|
|
this.sendToClients();
|
|
|
|
}
|
2018-11-23 17:11:35 +01:00
|
|
|
}
|