Class TrackVisual

java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
com.simibubi.create.content.trains.track.TrackVisual
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<TrackBlockEntity>, 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.AbstractVisual implements dev.engine_room.flywheel.api.visual.BlockEntityVisual<TrackBlockEntity>, 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
    Modifier and Type
    Field
    Description
    protected final TrackBlockEntity
     
    protected @UnknownNullability dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector
     
    protected final net.minecraft.core.BlockPos
     
    protected final net.minecraft.core.BlockPos
     

    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)
     

    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
  • Field Details

    • blockEntity

      protected final TrackBlockEntity blockEntity
    • pos

      protected final net.minecraft.core.BlockPos pos
    • visualPos

      protected final net.minecraft.core.BlockPos visualPos
    • lightSections

      protected @UnknownNullability dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector lightSections
  • 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
    • 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
    • _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>