java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<TrackTileEntity>
com.simibubi.create.content.logistics.trains.track.TrackInstance
All Implemented Interfaces:
com.jozufozu.flywheel.api.instance.Instance, com.jozufozu.flywheel.light.LightListener

public class TrackInstance extends com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<TrackTileEntity>
  • Field Summary

    Fields inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance

    blockEntity, blockState, instancePos, pos

    Fields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance

    materialManager, removed, world
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrackInstance(com.jozufozu.flywheel.api.MaterialManager materialManager, TrackTileEntity track)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jozufozu.flywheel.util.box.ImmutableBox
     
    void
     
    void
     
    void
     

    Methods inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance

    getInstancePosition, getOrientedMaterial, getTransformMaterial, getWorldPosition, shouldReset

    Methods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance

    init, isListenerInvalid, onLightUpdate, relight, relight, relight, relight, removeAndMark

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.jozufozu.flywheel.light.LightListener

    onLightPacket
  • Constructor Details

    • TrackInstance

      public TrackInstance(com.jozufozu.flywheel.api.MaterialManager materialManager, TrackTileEntity track)
  • Method Details

    • update

      public void update()
      Overrides:
      update in class com.jozufozu.flywheel.backend.instancing.AbstractInstance
    • getVolume

      public com.jozufozu.flywheel.util.box.ImmutableBox getVolume()
      Specified by:
      getVolume in interface com.jozufozu.flywheel.light.LightListener
      Overrides:
      getVolume in class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<TrackTileEntity>
    • updateLight

      public void updateLight()
      Overrides:
      updateLight in class com.jozufozu.flywheel.backend.instancing.AbstractInstance
    • remove

      public void remove()
      Specified by:
      remove in class com.jozufozu.flywheel.backend.instancing.AbstractInstance