Class LinearInterpolationHandler
java.lang.Object
net.minecraft.world.entity.AbstractInterpolationHandler
net.minecraft.world.entity.LinearInterpolationHandler
- All Implemented Interfaces:
InterpolationHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classNested classes/interfaces inherited from interface InterpolationHandler
InterpolationHandler.NoOpInterpolationHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final LinearInterpolationHandler.InterpolationDataFields inherited from class AbstractInterpolationHandler
entity, interpolationSteps, lastPositionAndRotationFields inherited from interface InterpolationHandler
NO_OP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLinearInterpolationHandler(Entity entity, int interpolationSteps) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()static InterpolationHandlerstatic InterpolationHandlerprotected voidbooleanprotected PositionAndRotation.MutablevoidsetInterpolationLength(int steps) protected voidstartInterpolating(PositionPath position, float yRot, float xRot) Methods inherited from class AbstractInterpolationHandler
applyPredictedMovement, interpolate, interpolateTo, interpolateTo, targetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InterpolationHandler
interpolationTracker
-
Field Details
-
DEFAULT_INTERPOLATION_STEPS
public static final int DEFAULT_INTERPOLATION_STEPS- See Also:
-
interpolationData
-
-
Constructor Details
-
LinearInterpolationHandler
-
-
Method Details
-
create
-
create
-
setInterpolationLength
public void setInterpolationLength(int steps) -
interpolationData
- Specified by:
interpolationDatain classAbstractInterpolationHandler
-
startInterpolating
- Specified by:
startInterpolatingin classAbstractInterpolationHandler
-
doInterpolate
protected void doInterpolate()- Specified by:
doInterpolatein classAbstractInterpolationHandler
-
hasActiveInterpolation
public boolean hasActiveInterpolation() -
cancel
public void cancel()
-