Class TeleportCache
java.lang.Object
org.geysermc.connector.network.session.cache.TeleportCache
Represents a teleport ID and corresponding coordinates that need to be confirmed.
The vanilla Java client, after getting a
The vanilla Java client, after getting a
ServerPlayerPositionRotationPacket,
adjusts the player's positions and immediately sends a teleport back. However, we want to acknowledge that the
Bedrock player actually moves close to that point, so we store the teleport until we get a movement packet from
Bedrock that the teleport was successful.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConfirm(com.nukkitx.math.vector.Vector3d position)voidboolean
-
Constructor Details
-
TeleportCache
public TeleportCache()
-
-
Method Details
-
canConfirm
public boolean canConfirm(com.nukkitx.math.vector.Vector3d position) -
incrementUnconfirmedFor
public void incrementUnconfirmedFor() -
shouldResend
public boolean shouldResend()
-