mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-30 05:56:34 +02:00
23 lines
615 B
Java
23 lines
615 B
Java
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
public class BlockEntityPickupStopper extends BlockEntityImpl {
|
|
|
|
public BlockEntityPickupStopper(BlockPos pos, BlockState state) {
|
|
super(ModBlockEntities.PICKUP_STOPPER, pos, state);
|
|
}
|
|
|
|
public float getRadius() {
|
|
return this.redstonePower / 2F;
|
|
}
|
|
|
|
@Override
|
|
public void onRedstonePowerChange(int newPower) {
|
|
super.onRedstonePowerChange(newPower);
|
|
if (!this.level.isClientSide)
|
|
this.sendToClients();
|
|
}
|
|
}
|