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
FieldsModifier and TypeFieldDescriptionprotected final TrackBlockEntityprotected @UnknownNullability dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollectorprotected final net.minecraft.core.BlockPosprotected final net.minecraft.core.BlockPosFields inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
deleted, level, visualizationContext -
Constructor Summary
ConstructorsConstructorDescriptionTrackVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, TrackBlockEntity track, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionvoid_delete()voidcollectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer) it.unimi.dsi.fastutil.longs.LongSetvoidsetSectionCollector(dev.engine_room.flywheel.api.visual.SectionTrackedVisual.SectionCollector sectionCollector) voidupdate(float pt) Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractVisual
delete, instancerProvider, renderOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.api.visual.Visual
delete
-
Field Details
-
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:
setSectionCollectorin interfacedev.engine_room.flywheel.api.visual.SectionTrackedVisual
-
update
public void update(float pt) - Specified by:
updatein interfacedev.engine_room.flywheel.api.visual.Visual- Overrides:
updatein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-
_delete
public void _delete()- Specified by:
_deletein classdev.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:
collectCrumblingInstancesin interfacedev.engine_room.flywheel.api.visual.BlockEntityVisual<TrackBlockEntity>
-