Class TrackVisual

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<TrackBlockEntity>
com.simibubi.create.content.trains.track.TrackVisual
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<TrackBlockEntity>, dev.engine_room.flywheel.api.visual.LightUpdatedVisual, dev.engine_room.flywheel.api.visual.SectionTrackedVisual, dev.engine_room.flywheel.api.visual.ShaderLightVisual, dev.engine_room.flywheel.api.visual.Visual

public class TrackVisual extends dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<TrackBlockEntity> implements dev.engine_room.flywheel.api.visual.ShaderLightVisual
  • Nested Class Summary

    Nested classes/interfaces inherited from interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual

    dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector
  • Field Summary

    Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual

    blockEntity, blockState, lightSections, pos, visualPos

    Fields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    deleted, level, visualizationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrackVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, TrackBlockEntity track, float partialTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
     
    it.unimi.dsi.fastutil.longs.LongSet
     
    void
    setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector)
     
    void
    update(float pt)
     
    void
    updateLight(float partialTick)
     

    Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual

    computePackedLight, doDistanceLimitThisFrame, getVisualPosition, isVisible, relight, relight, relight, relight, relight, relight

    Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual

    delete, instancerProvider, renderOrigin

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface dev.engine_room.flywheel.api.visual.Visual

    delete
  • Constructor Details

    • TrackVisual

      public TrackVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, TrackBlockEntity track, float partialTick)
  • Method Details

    • setSectionCollector

      public void setSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector)
      Specified by:
      setSectionCollector in interface dev.engine_room.flywheel.api.visual.SectionTrackedVisual
      Overrides:
      setSectionCollector in class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<TrackBlockEntity>
    • update

      public void update(float pt)
      Specified by:
      update in interface dev.engine_room.flywheel.api.visual.Visual
      Overrides:
      update in class dev.engine_room.flywheel.lib.visual.AbstractVisual
    • updateLight

      public void updateLight(float partialTick)
      Specified by:
      updateLight in interface dev.engine_room.flywheel.api.visual.LightUpdatedVisual
    • _delete

      public void _delete()
      Specified by:
      _delete in class dev.engine_room.flywheel.lib.visual.AbstractVisual
    • collectLightSections

      public it.unimi.dsi.fastutil.longs.LongSet collectLightSections()
    • collectCrumblingInstances

      public void collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
      Specified by:
      collectCrumblingInstances in interface dev.engine_room.flywheel.api.visual.BlockEntityVisual<TrackBlockEntity>