Class AbstractInterpolationHandler
java.lang.Object
net.minecraft.world.entity.AbstractInterpolationHandler
- All Implemented Interfaces:
InterpolationHandler
- Direct Known Subclasses:
LinearInterpolationHandler, SteppedInterpolationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface InterpolationHandler
InterpolationHandler.NoOpInterpolationHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Entityprotected intprotected final PositionAndRotation.MutableFields inherited from interface InterpolationHandler
NO_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadjustInterpolationPosition(Vec3 delta) private voidvoidapplyPredictedMovement(Vec3 delta) protected abstract voidvoidbooleaninterpolateTo(@Nullable PositionPath position, float yRot, float xRot, boolean hasRotation) protected voidinterpolateTo(PositionPath position, float yRot, float xRot) protected abstract PositionAndRotation.Mutableprivate voidprotected abstract voidstartInterpolating(PositionPath position, float yRot, float xRot) target()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InterpolationHandler
cancel, hasActiveInterpolation, interpolationTracker
-
Field Details
-
entity
-
interpolationSteps
protected int interpolationSteps -
lastPositionAndRotation
-
-
Constructor Details
-
AbstractInterpolationHandler
-
-
Method Details
-
interpolationData
-
startInterpolating
-
doInterpolate
protected abstract void doInterpolate() -
target
- Specified by:
targetin interfaceInterpolationHandler
-
interpolateTo
public boolean interpolateTo(@Nullable PositionPath position, float yRot, float xRot, boolean hasRotation) - Specified by:
interpolateToin interfaceInterpolationHandler
-
interpolateTo
-
applyPredictedMovement
- Specified by:
applyPredictedMovementin interfaceInterpolationHandler
-
interpolate
public void interpolate()- Specified by:
interpolatein interfaceInterpolationHandler
-
adjustInterpolationPosition
-
adjustInterpolationTargetFromDeltas
private void adjustInterpolationTargetFromDeltas() -
setLastPositionAndRotation
private void setLastPositionAndRotation()
-