mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-05 20:59:09 +01:00
19 lines
456 B
Java
19 lines
456 B
Java
package de.ellpeck.naturesaura.blocks.tiles;
|
|
|
|
public class TileEntitySpawnLamp extends TileEntityImpl {
|
|
|
|
public TileEntitySpawnLamp() {
|
|
super(ModTileEntities.SPAWN_LAMP);
|
|
}
|
|
|
|
public int getRadius() {
|
|
return this.redstonePower * 3;
|
|
}
|
|
|
|
@Override
|
|
public void onRedstonePowerChange(int newPower) {
|
|
super.onRedstonePowerChange(newPower);
|
|
if (!this.world.isRemote)
|
|
this.sendToClients();
|
|
}
|
|
}
|