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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.jozufozu.flywheel.util.box.GridAlignedBB
     
    protected final C
     
    protected final com.jozufozu.flywheel.light.LightUpdater
     
    final com.jozufozu.flywheel.light.GPULightVolume
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ContraptionLighter(C contraption)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    abstract com.jozufozu.flywheel.util.box.GridAlignedBB
     
    com.jozufozu.flywheel.util.box.ImmutableBox
     
    protected static void
    growBoundsForEdgeData(com.jozufozu.flywheel.util.box.GridAlignedBB bounds)
     
    void
    onLightPacket(com.jozufozu.flywheel.light.LightProvider world, int chunkX, int chunkZ)
     
    void
    onLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.util.box.ImmutableBox changed)
     
    com.jozufozu.flywheel.light.ListenerStatus
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()
    • status

      public com.jozufozu.flywheel.light.ListenerStatus status()
      Specified by:
      status in interface com.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:
      onLightUpdate in interface com.jozufozu.flywheel.light.LightListener
    • onLightPacket

      public void onLightPacket(com.jozufozu.flywheel.light.LightProvider world, 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()