mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-01 19:23:36 +02:00
22 lines
540 B
Java
22 lines
540 B
Java
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
import net.minecraft.tileentity.TileEntityType;
|
|
|
|
public class TileEntityPickupStopper extends TileEntityImpl {
|
|
|
|
public TileEntityPickupStopper(TileEntityType<?> tileEntityTypeIn) {
|
|
super(tileEntityTypeIn);
|
|
}
|
|
|
|
public float getRadius() {
|
|
return this.redstonePower / 2F;
|
|
}
|
|
|
|
@Override
|
|
public void onRedstonePowerChange(int newPower) {
|
|
super.onRedstonePowerChange(newPower);
|
|
if (!this.world.isRemote)
|
|
this.sendToClients();
|
|
}
|
|
}
|