public abstract class ContraptionLighter<C extends Contraption>
extends java.lang.Object
implements com.jozufozu.flywheel.light.ILightUpdateListener
| Modifier and Type | Field and Description |
|---|---|
protected com.jozufozu.flywheel.light.GridAlignedBB |
bounds |
protected C |
contraption |
com.jozufozu.flywheel.light.LightVolume |
lightVolume |
protected boolean |
scheduleRebuild |
| Modifier | Constructor and Description |
|---|---|
protected |
ContraptionLighter(C contraption) |
| Modifier and Type | Method and Description |
|---|---|
protected com.jozufozu.flywheel.light.GridAlignedBB |
contraptionBoundsToVolume(com.jozufozu.flywheel.light.GridAlignedBB bounds) |
com.jozufozu.flywheel.light.GridAlignedBB |
getBounds() |
abstract com.jozufozu.flywheel.light.GridAlignedBB |
getContraptionBounds() |
boolean |
onLightPacket(net.minecraft.world.IBlockDisplayReader world,
int chunkX,
int chunkZ) |
boolean |
onLightUpdate(net.minecraft.world.IBlockDisplayReader world,
net.minecraft.world.LightType type,
com.jozufozu.flywheel.light.GridAlignedBB changed) |
protected void |
startListening() |
void |
tick(RenderedContraption owner) |
protected final C extends Contraption contraption
public final com.jozufozu.flywheel.light.LightVolume lightVolume
protected com.jozufozu.flywheel.light.GridAlignedBB bounds
protected boolean scheduleRebuild
protected ContraptionLighter(C contraption)
public void tick(RenderedContraption owner)
public abstract com.jozufozu.flywheel.light.GridAlignedBB getContraptionBounds()
public boolean onLightUpdate(net.minecraft.world.IBlockDisplayReader world,
net.minecraft.world.LightType type,
com.jozufozu.flywheel.light.GridAlignedBB changed)
onLightUpdate in interface com.jozufozu.flywheel.light.ILightUpdateListenerpublic boolean onLightPacket(net.minecraft.world.IBlockDisplayReader world,
int chunkX,
int chunkZ)
onLightPacket in interface com.jozufozu.flywheel.light.ILightUpdateListenerprotected void startListening()
protected com.jozufozu.flywheel.light.GridAlignedBB contraptionBoundsToVolume(com.jozufozu.flywheel.light.GridAlignedBB bounds)
public com.jozufozu.flywheel.light.GridAlignedBB getBounds()