mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-05-03 08:35:17 +02:00
20 lines
478 B
Java
20 lines
478 B
Java
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
public class BlockEntityPickupStopper extends BlockEntityImpl {
|
|
|
|
public BlockEntityPickupStopper() {
|
|
super(ModTileEntities.PICKUP_STOPPER);
|
|
}
|
|
|
|
public float getRadius() {
|
|
return this.redstonePower / 2F;
|
|
}
|
|
|
|
@Override
|
|
public void onRedstonePowerChange(int newPower) {
|
|
super.onRedstonePowerChange(newPower);
|
|
if (!this.level.isClientSide)
|
|
this.sendToClients();
|
|
}
|
|
}
|