Class AnimateElementInstruction<T extends PonderSceneElement>
java.lang.Object
com.simibubi.create.foundation.ponder.instruction.PonderInstruction
com.simibubi.create.foundation.ponder.instruction.TickingInstruction
com.simibubi.create.foundation.ponder.instruction.AnimateElementInstruction<T>
- Direct Known Subclasses:
AnimateMinecartInstruction,AnimateParrotInstruction,AnimateWorldSectionInstruction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.phys.Vec3protected Tprotected ElementLink<T>protected net.minecraft.world.phys.Vec3protected net.minecraft.world.phys.Vec3Fields inherited from class com.simibubi.create.foundation.ponder.instruction.TickingInstruction
remainingTicks, totalTicks -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAnimateElementInstruction(ElementLink<T> link, net.minecraft.world.phys.Vec3 totalDelta, int ticks, BiConsumer<T, net.minecraft.world.phys.Vec3> setter, Function<T, net.minecraft.world.phys.Vec3> getter) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidfirstTick(PonderScene scene) voidtick(PonderScene scene) Methods inherited from class com.simibubi.create.foundation.ponder.instruction.TickingInstruction
isBlocking, isComplete, onScheduled, resetMethods inherited from class com.simibubi.create.foundation.ponder.instruction.PonderInstruction
simple
-
Field Details
-
deltaPerTick
protected net.minecraft.world.phys.Vec3 deltaPerTick -
totalDelta
protected net.minecraft.world.phys.Vec3 totalDelta -
target
protected net.minecraft.world.phys.Vec3 target -
link
-
element
-
-
Constructor Details
-
AnimateElementInstruction
protected AnimateElementInstruction(ElementLink<T> link, net.minecraft.world.phys.Vec3 totalDelta, int ticks, BiConsumer<T, net.minecraft.world.phys.Vec3> setter, Function<T, net.minecraft.world.phys.Vec3> getter)
-
-
Method Details
-
firstTick
- Overrides:
firstTickin classTickingInstruction
-
tick
- Overrides:
tickin classTickingInstruction
-