Package net.minecraft.world.entity
Class InterpolationHandler
java.lang.Object
net.minecraft.world.entity.InterpolationHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private final Entity
private final InterpolationHandler.InterpolationData
private int
private final Consumer
<InterpolationHandler> private Vec3
private Vec2
-
Constructor Summary
ConstructorsConstructorDescriptionInterpolationHandler
(Entity p_394439_) InterpolationHandler
(Entity p_394433_, int p_394544_) InterpolationHandler
(Entity p_393992_, int p_394386_, Consumer<InterpolationHandler> p_393601_) InterpolationHandler
(Entity p_394101_, Consumer<InterpolationHandler> p_394503_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
boolean
void
void
interpolateTo
(Vec3 p_393836_, float p_394255_, float p_393907_) position()
void
setInterpolationLength
(int p_393476_) float
xRot()
float
yRot()
-
Field Details
-
DEFAULT_INTERPOLATION_STEPS
public static final int DEFAULT_INTERPOLATION_STEPS- See Also:
-
entity
-
interpolationSteps
private int interpolationSteps -
interpolationData
-
previousTickPosition
-
previousTickRot
-
onInterpolationStart
-
-
Constructor Details
-
InterpolationHandler
-
InterpolationHandler
-
InterpolationHandler
-
InterpolationHandler
public InterpolationHandler(Entity p_393992_, int p_394386_, @Nullable Consumer<InterpolationHandler> p_393601_)
-
-
Method Details
-
position
-
yRot
public float yRot() -
xRot
public float xRot() -
interpolateTo
-
hasActiveInterpolation
public boolean hasActiveInterpolation() -
setInterpolationLength
public void setInterpolationLength(int p_393476_) -
interpolate
public void interpolate() -
cancel
public void cancel()
-