Class RemotePlayerInterpolationHandler

java.lang.Object
com.viaversion.viafabricplus.bedrock.movement.RemotePlayerInterpolationHandler
All Implemented Interfaces:
BedrockPlayerPitch, net.minecraft.world.entity.InterpolationHandler

public final class RemotePlayerInterpolationHandler extends Object implements net.minecraft.world.entity.InterpolationHandler, BedrockPlayerPitch
Decorates the real host handler so ordinary Java and unsupported modes retain their existing path.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.entity.InterpolationHandler

    net.minecraft.world.entity.InterpolationHandler.NoOpInterpolationHandler
  • Field Summary

    Fields inherited from interface net.minecraft.world.entity.InterpolationHandler

    NO_OP
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemotePlayerInterpolationHandler(net.minecraft.client.player.RemotePlayer player, net.minecraft.world.entity.InterpolationHandler host)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyPredictedMovement(net.minecraft.world.phys.Vec3 movement)
     
    net.raphimc.viabedrock.protocol.model.Position3f
     
    void
     
    void
     
    boolean
     
    void
     
    boolean
    interpolateTo(net.minecraft.world.entity.PositionPath path, float yaw, float pitch, boolean hasRotation)
     
    net.minecraft.world.entity.InterpolationTracker
     
    float
     
    boolean
    receive(net.raphimc.viabedrock.api.model.RemotePlayerMovement movement)
     
    net.minecraft.core.PositionAndRotation
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemotePlayerInterpolationHandler

      public RemotePlayerInterpolationHandler(net.minecraft.client.player.RemotePlayer player, net.minecraft.world.entity.InterpolationHandler host)
  • Method Details

    • receive

      public boolean receive(net.raphimc.viabedrock.api.model.RemotePlayerMovement movement)
    • bodyDisplacement

      public net.raphimc.viabedrock.protocol.model.Position3f bodyDisplacement()
    • previousPitch

      public float previousPitch()
      Specified by:
      previousPitch in interface BedrockPlayerPitch
    • finishBodyTick

      public void finishBodyTick()
    • interpolate

      public void interpolate()
      Specified by:
      interpolate in interface net.minecraft.world.entity.InterpolationHandler
    • target

      public net.minecraft.core.PositionAndRotation target()
      Specified by:
      target in interface net.minecraft.world.entity.InterpolationHandler
    • interpolateTo

      public boolean interpolateTo(net.minecraft.world.entity.PositionPath path, float yaw, float pitch, boolean hasRotation)
      Specified by:
      interpolateTo in interface net.minecraft.world.entity.InterpolationHandler
    • interpolationTracker

      public net.minecraft.world.entity.InterpolationTracker interpolationTracker()
      Specified by:
      interpolationTracker in interface net.minecraft.world.entity.InterpolationHandler
    • applyPredictedMovement

      public void applyPredictedMovement(net.minecraft.world.phys.Vec3 movement)
      Specified by:
      applyPredictedMovement in interface net.minecraft.world.entity.InterpolationHandler
    • hasActiveInterpolation

      public boolean hasActiveInterpolation()
      Specified by:
      hasActiveInterpolation in interface net.minecraft.world.entity.InterpolationHandler
    • cancel

      public void cancel()
      Specified by:
      cancel in interface net.minecraft.world.entity.InterpolationHandler