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
ConstructorsConstructorDescriptionRemotePlayerInterpolationHandler(net.minecraft.client.player.RemotePlayer player, net.minecraft.world.entity.InterpolationHandler host) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPredictedMovement(net.minecraft.world.phys.Vec3 movement) net.raphimc.viabedrock.protocol.model.Position3fvoidcancel()voidbooleanvoidbooleaninterpolateTo(net.minecraft.world.entity.PositionPath path, float yaw, float pitch, boolean hasRotation) net.minecraft.world.entity.InterpolationTrackerfloatbooleanreceive(net.raphimc.viabedrock.api.model.RemotePlayerMovement movement) net.minecraft.core.PositionAndRotationtarget()
-
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:
previousPitchin interfaceBedrockPlayerPitch
-
finishBodyTick
public void finishBodyTick() -
interpolate
public void interpolate()- Specified by:
interpolatein interfacenet.minecraft.world.entity.InterpolationHandler
-
target
public net.minecraft.core.PositionAndRotation target()- Specified by:
targetin interfacenet.minecraft.world.entity.InterpolationHandler
-
interpolateTo
public boolean interpolateTo(net.minecraft.world.entity.PositionPath path, float yaw, float pitch, boolean hasRotation) - Specified by:
interpolateToin interfacenet.minecraft.world.entity.InterpolationHandler
-
interpolationTracker
public net.minecraft.world.entity.InterpolationTracker interpolationTracker()- Specified by:
interpolationTrackerin interfacenet.minecraft.world.entity.InterpolationHandler
-
applyPredictedMovement
public void applyPredictedMovement(net.minecraft.world.phys.Vec3 movement) - Specified by:
applyPredictedMovementin interfacenet.minecraft.world.entity.InterpolationHandler
-
hasActiveInterpolation
public boolean hasActiveInterpolation()- Specified by:
hasActiveInterpolationin interfacenet.minecraft.world.entity.InterpolationHandler
-
cancel
public void cancel()- Specified by:
cancelin interfacenet.minecraft.world.entity.InterpolationHandler
-