Class TeleportCache
java.lang.Object
org.geysermc.geyser.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
ClientboundPlayerPositionPacket,
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
ConstructorsConstructorDescriptionTeleportCache(org.cloudburstmc.math.vector.Vector3d javaPosition, org.cloudburstmc.math.vector.Vector3f bedrockPosition, float pitch, float yaw, int teleportConfirmId) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConfirm(org.cloudburstmc.math.vector.Vector3f position) protected booleanbooleanorg.cloudburstmc.math.vector.Vector3forg.cloudburstmc.math.vector.Vector3dfloatgetPitch()intfloatgetYaw()inthashCode()toString()
-
Constructor Details
-
TeleportCache
public TeleportCache(org.cloudburstmc.math.vector.Vector3d javaPosition, org.cloudburstmc.math.vector.Vector3f bedrockPosition, float pitch, float yaw, int teleportConfirmId)
-
-
Method Details
-
canConfirm
public boolean canConfirm(org.cloudburstmc.math.vector.Vector3f position) -
getJavaPosition
public org.cloudburstmc.math.vector.Vector3d getJavaPosition() -
getBedrockPosition
public org.cloudburstmc.math.vector.Vector3f getBedrockPosition() -
getPitch
public float getPitch() -
getYaw
public float getYaw() -
getTeleportConfirmId
public int getTeleportConfirmId() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-