java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.render.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 Details

    • contraption

      protected final C extends Contraption 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

      protected ContraptionLighter(C contraption)
  • Method Details

    • getContraptionBounds

      public abstract com.jozufozu.flywheel.util.box.GridAlignedBB getContraptionBounds()
    • isListenerInvalid

      public boolean isListenerInvalid()
      Specified by:
      isListenerInvalid in interface com.jozufozu.flywheel.light.LightListener
    • onLightUpdate

      public void onLightUpdate(net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed)
      Specified by:
      onLightUpdate in interface com.jozufozu.flywheel.light.LightListener
    • onLightPacket

      public void onLightPacket(int chunkX, int chunkZ)
      Specified by:
      onLightPacket in interface com.jozufozu.flywheel.light.LightListener
    • growBoundsForEdgeData

      protected static void growBoundsForEdgeData(com.jozufozu.flywheel.util.box.GridAlignedBB bounds)
    • getVolume

      public com.jozufozu.flywheel.util.box.ImmutableBox getVolume()
      Specified by:
      getVolume in interface com.jozufozu.flywheel.light.LightListener
    • delete

      public void delete()