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, visualPosFields 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) voidupdateLight(float partialTick) Methods inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual
computePackedLight, doDistanceLimitThisFrame, getVisualPosition, isVisible, relight, relight, relight, relight, relight, relightMethods 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
-
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- Overrides:
setSectionCollectorin classdev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<TrackBlockEntity>
-
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
-
updateLight
public void updateLight(float partialTick) - Specified by:
updateLightin interfacedev.engine_room.flywheel.api.visual.LightUpdatedVisual
-
_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>
-