Class ContraptionLighter<C extends Contraption>
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter<C>
- All Implemented Interfaces:
com.jozufozu.flywheel.light.LightListener
- Direct Known Subclasses:
AnchoredLighter,EmptyLighter,NonStationaryLighter,PistonLighter,PulleyLighter
public abstract class ContraptionLighter<C extends Contraption>
extends Object
implements com.jozufozu.flywheel.light.LightListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.jozufozu.flywheel.util.box.GridAlignedBBprotected final Cprotected final com.jozufozu.flywheel.light.LightUpdaterfinal com.jozufozu.flywheel.light.GPULightVolumeprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()abstract com.jozufozu.flywheel.util.box.GridAlignedBBcom.jozufozu.flywheel.util.box.ImmutableBoxprotected voidvoidonLightPacket(com.jozufozu.flywheel.light.LightProvider world, int chunkX, int chunkZ) voidonLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed) com.jozufozu.flywheel.light.ListenerStatusstatus()
-
Field Details
-
contraption
-
lightVolume
public final com.jozufozu.flywheel.light.GPULightVolume lightVolume -
lightUpdater
protected final com.jozufozu.flywheel.light.LightUpdater lightUpdater -
bounds
protected final com.jozufozu.flywheel.util.box.GridAlignedBB bounds -
scheduleRebuild
protected boolean scheduleRebuild
-
-
Constructor Details
-
ContraptionLighter
-
-
Method Details
-
getContraptionBounds
public abstract com.jozufozu.flywheel.util.box.GridAlignedBB getContraptionBounds() -
status
public com.jozufozu.flywheel.light.ListenerStatus status()- Specified by:
statusin interfacecom.jozufozu.flywheel.light.LightListener
-
onLightUpdate
public void onLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed) - Specified by:
onLightUpdatein interfacecom.jozufozu.flywheel.light.LightListener
-
onLightPacket
public void onLightPacket(com.jozufozu.flywheel.light.LightProvider world, int chunkX, int chunkZ) - Specified by:
onLightPacketin interfacecom.jozufozu.flywheel.light.LightListener
-
growBoundsForEdgeData
protected void growBoundsForEdgeData() -
getVolume
public com.jozufozu.flywheel.util.box.ImmutableBox getVolume()- Specified by:
getVolumein interfacecom.jozufozu.flywheel.light.LightListener
-
delete
public void delete()
-