Class OrientedRotatingVisual<T extends KineticBlockEntity>
java.lang.Object
dev.engine_room.flywheel.lib.visual.AbstractVisual
dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual<T>
com.simibubi.create.content.kinetics.base.KineticBlockEntityVisual<T>
com.simibubi.create.content.kinetics.base.OrientedRotatingVisual<T>
- All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.BlockEntityVisual<T>,dev.engine_room.flywheel.api.visual.LightUpdatedVisual,dev.engine_room.flywheel.api.visual.SectionTrackedVisual,dev.engine_room.flywheel.api.visual.Visual
- Direct Known Subclasses:
BearingVisual
public class OrientedRotatingVisual<T extends KineticBlockEntity>
extends KineticBlockEntityVisual<T>
-
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
FieldsFields 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
ConstructorsConstructorDescriptionOrientedRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, net.minecraft.core.Direction from, net.minecraft.core.Direction to, dev.engine_room.flywheel.api.model.Model model) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_delete()static <T extends KineticBlockEntity>
dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> backHorizontal(dev.engine_room.flywheel.lib.model.baked.PartialModel partial) voidcollectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer) static dev.engine_room.flywheel.api.visual.BlockEntityVisual<? super GantryShaftBlockEntity> gantryShaft(dev.engine_room.flywheel.api.visualization.VisualizationContext visualizationContext, GantryShaftBlockEntity gantryShaftBlockEntity, float partialTick) static <T extends KineticBlockEntity>
dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> of(dev.engine_room.flywheel.lib.model.baked.PartialModel partial) voidupdate(float pt) voidupdateLight(float partialTick) Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityVisual
applyOverstressEffect, rotationAxis, rotationAxis, rotationOffset, shouldOffsetMethods inherited from class dev.engine_room.flywheel.lib.visual.AbstractBlockEntityVisual
computePackedLight, doDistanceLimitThisFrame, getVisualPosition, isVisible, relight, relight, relight, relight, relight, relight, setSectionCollectorMethods 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
-
rotatingModel
-
-
Constructor Details
-
OrientedRotatingVisual
public OrientedRotatingVisual(dev.engine_room.flywheel.api.visualization.VisualizationContext context, T blockEntity, float partialTick, net.minecraft.core.Direction from, net.minecraft.core.Direction to, dev.engine_room.flywheel.api.model.Model model) - Parameters:
from- The source model orientation to rotate away from.to- The orientation to rotate to.model- The model to spin.
-
-
Method Details
-
of
public static <T extends KineticBlockEntity> dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> of(dev.engine_room.flywheel.lib.model.baked.PartialModel partial) -
backHorizontal
public static <T extends KineticBlockEntity> dev.engine_room.flywheel.lib.visualization.SimpleBlockEntityVisualizer.Factory<T> backHorizontal(dev.engine_room.flywheel.lib.model.baked.PartialModel partial) -
gantryShaft
public static dev.engine_room.flywheel.api.visual.BlockEntityVisual<? super GantryShaftBlockEntity> gantryShaft(dev.engine_room.flywheel.api.visualization.VisualizationContext visualizationContext, GantryShaftBlockEntity gantryShaftBlockEntity, float partialTick) -
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) -
_delete
protected void _delete()- Specified by:
_deletein classdev.engine_room.flywheel.lib.visual.AbstractVisual
-
collectCrumblingInstances
public void collectCrumblingInstances(Consumer<dev.engine_room.flywheel.api.instance.Instance> consumer)
-