Class InterpolationHandler

java.lang.Object
net.minecraft.world.entity.InterpolationHandler

public class InterpolationHandler extends Object
  • Field Details

    • DEFAULT_INTERPOLATION_STEPS

      public static final int DEFAULT_INTERPOLATION_STEPS
      See Also:
    • entity

      private final Entity entity
    • interpolationSteps

      private int interpolationSteps
    • interpolationData

      private final InterpolationHandler.InterpolationData interpolationData
    • previousTickPosition

      @Nullable private Vec3 previousTickPosition
    • previousTickRot

      @Nullable private Vec2 previousTickRot
    • onInterpolationStart

      @Nullable private final Consumer<InterpolationHandler> onInterpolationStart
  • Constructor Details

    • InterpolationHandler

      public InterpolationHandler(Entity p_394439_)
    • InterpolationHandler

      public InterpolationHandler(Entity p_394433_, int p_394544_)
    • InterpolationHandler

      public InterpolationHandler(Entity p_394101_, @Nullable Consumer<InterpolationHandler> p_394503_)
    • InterpolationHandler

      public InterpolationHandler(Entity p_393992_, int p_394386_, @Nullable Consumer<InterpolationHandler> p_393601_)
  • Method Details

    • position

      public Vec3 position()
    • yRot

      public float yRot()
    • xRot

      public float xRot()
    • interpolateTo

      public void interpolateTo(Vec3 p_393836_, float p_394255_, float p_393907_)
    • hasActiveInterpolation

      public boolean hasActiveInterpolation()
    • setInterpolationLength

      public void setInterpolationLength(int p_393476_)
    • interpolate

      public void interpolate()
    • cancel

      public void cancel()