Class WrapperPlayServerPlayerPositionAndLook
java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerPositionAndLook
public class WrapperPlayServerPlayerPositionAndLook
extends PacketWrapper<WrapperPlayServerPlayerPositionAndLook>
Teleporting a player directly with packets will cause
issues on most server implementations and is discouraged!
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.retrooper.packetevents.wrapper.PacketWrapper
PacketWrapper.Reader<T>, PacketWrapper.Writer<T>
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.wrapper.PacketWrapper
buffer, bufferLock, clientVersion, serverVersion, user
-
Constructor Summary
ConstructorDescriptionWrapperPlayServerPlayerPositionAndLook
(double x, double y, double z, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle) WrapperPlayServerPlayerPositionAndLook
(int teleportId, EntityPositionData values, RelativeFlag flags) WrapperPlayServerPlayerPositionAndLook
(int teleportId, Vector3d position, Vector3d deltaMovement, float yaw, float pitch, byte flags) WrapperPlayServerPlayerPositionAndLook
(int teleportId, Vector3d position, Vector3d deltaMovement, float yaw, float pitch, RelativeFlag flags) WrapperPlayServerPlayerPositionAndLook
(Vector3d position, float yaw, float pitch, byte flags, int teleportId) WrapperPlayServerPlayerPositionAndLook
(Vector3d position, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle) -
Method Summary
Modifier and TypeMethodDescriptionvoid
float
getPitch()
byte
Deprecated.The mask no longer fits in a byte since 1.21.2int
double
getX()
double
getY()
float
getYaw()
double
getZ()
boolean
Removed with 1.19.3boolean
isRelativeFlag
(RelativeFlag flag) void
read()
void
setDeltaMovement
(Vector3d deltaMovement) void
setDismountVehicle
(boolean dismountVehicle) Removed with 1.19.3void
setPitch
(float pitch) void
setPosition
(Vector3d position) void
setRelative
(RelativeFlag flag, boolean relative) void
setRelativeFlags
(RelativeFlag flags) void
setRelativeMask
(byte relativeMask) Deprecated.The mask no longer fits in a byte since 1.21.2void
setTeleportId
(int teleportId) void
setValues
(EntityPositionData values) void
setX
(double x) void
setY
(double y) void
setYaw
(float yaw) void
setZ
(double z) void
write()
Methods inherited from class com.github.retrooper.packetevents.wrapper.PacketWrapper
createUniversalPacketWrapper, getBuffer, getChunkKey, getChunkX, getChunkZ, getClientVersion, getMaxMessageLength, getNativePacketId, getPacketId, getPacketTypeData, getRegistryHolder, getServerVersion, limitValue, prepareForSend, prepareForSend, readArray, readBitSet, readBlockPosition, readBoolean, readByte, readByteArray, readByteArray, readByteArrayOfSize, readBytes, readChatTypeBoundNetwork, readCollection, readComponent, readComponentAsJSON, readComponentAsNBT, readComponentJSON, readContainerId, readDimension, readDouble, readEntityMetadata, readEnum, readEnum, readEnumSet, readEvent, readFilterMask, readFloat, readGameMode, readIdentifier, readIdentifier, readInt, readItemStack, readItemStackModern, readKnownPack, readLastSeenMessages, readLastSeenMessagesEntry, readLastSeenMessagesPacked, readLastSeenMessagesUpdate, readLegacyLastSeenMessagesUpdate, readList, readLong, readLongArray, readLongArray, readMap, readMappedEntity, readMappedEntity, readMappedEntityOrDirect, readMappedEntityOrDirect, readMedium, readMerchantOffer, readMessageSignature, readMessageSignaturePacked, readMultiVersional, readNBT, readNBTRaw, readNode, readNullableVarInt, readOptional, readPresentItemStack, readPublicKey, readPublicProfileKey, readRemainingBytes, readRemoteChatSession, readRotation, readSaltSignature, readShort, readSignatureData, readSignedCommandArguments, readString, readString, readStyle, readTimestamp, readUnlimitedNBT, readUnlimitedNBTRaw, readUnsignedByte, readUnsignedShort, readUUID, readVarInt, readVarIntArray, readVarIntArrayOfSize, readVarLong, readVarShort, readVillagerData, readWorldBlockPosition, resetBuffer, resetByteBuf, setBuffer, setClientVersion, setNativePacketId, setPacketId, setServerVersion, writeArray, writeBitSet, writeBlockPosition, writeBoolean, writeByte, writeByteArray, writeByteArrayOfSize, writeBytes, writeChatTypeBoundNetwork, writeCollection, writeComponent, writeComponentAsJSON, writeComponentAsNBT, writeComponentJSON, writeContainerId, writeDimension, writeDouble, writeEntityMetadata, writeEntityMetadata, writeEnum, writeEnumSet, writeFilterMask, writeFloat, writeGameMode, writeIdentifier, writeIdentifier, writeInt, writeItemStack, writeItemStackModern, writeKnownPack, writeLastMessagesEntry, writeLastSeenMessages, writeLastSeenMessagesPacked, writeLastSeenMessagesUpdate, writeLegacyLastSeenMessagesUpdate, writeList, writeLong, writeLongArray, writeMap, writeMappedEntity, writeMappedEntityOrDirect, writeMedium, writeMerchantOffer, writeMessageSignature, writeMessageSignaturePacked, writeMultiVersional, writeNBT, writeNBTRaw, writeNode, writeNullableVarInt, writeOptional, writePresentItemStack, writePublicKey, writePublicProfileKey, writeRemoteChatSession, writeRotation, writeSaltSignature, writeShort, writeSignatureData, writeSignedCommandArguments, writeString, writeString, writeString, writeStyle, writeTimestamp, writeUUID, writeVarInt, writeVarIntArray, writeVarIntArrayOfSize, writeVarLong, writeVarShort, writeVillagerData, writeWorldBlockPosition
-
Constructor Details
-
WrapperPlayServerPlayerPositionAndLook
-
WrapperPlayServerPlayerPositionAndLook
public WrapperPlayServerPlayerPositionAndLook(double x, double y, double z, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle) -
WrapperPlayServerPlayerPositionAndLook
public WrapperPlayServerPlayerPositionAndLook(Vector3d position, float yaw, float pitch, byte flags, int teleportId, boolean dismountVehicle) -
WrapperPlayServerPlayerPositionAndLook
public WrapperPlayServerPlayerPositionAndLook(Vector3d position, float yaw, float pitch, byte flags, int teleportId) -
WrapperPlayServerPlayerPositionAndLook
-
WrapperPlayServerPlayerPositionAndLook
public WrapperPlayServerPlayerPositionAndLook(int teleportId, Vector3d position, Vector3d deltaMovement, float yaw, float pitch, RelativeFlag flags) -
WrapperPlayServerPlayerPositionAndLook
public WrapperPlayServerPlayerPositionAndLook(int teleportId, EntityPositionData values, RelativeFlag flags)
-
-
Method Details
-
read
public void read()- Overrides:
read
in classPacketWrapper<WrapperPlayServerPlayerPositionAndLook>
-
write
public void write()- Overrides:
write
in classPacketWrapper<WrapperPlayServerPlayerPositionAndLook>
-
copy
- Overrides:
copy
in classPacketWrapper<WrapperPlayServerPlayerPositionAndLook>
-
getTeleportId
public int getTeleportId() -
setTeleportId
public void setTeleportId(int teleportId) -
getValues
-
setValues
-
getPosition
-
setPosition
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
getDeltaMovement
-
setDeltaMovement
-
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getRelativeMask
Deprecated.The mask no longer fits in a byte since 1.21.2 -
setRelativeMask
Deprecated.The mask no longer fits in a byte since 1.21.2 -
isRelativeFlag
-
setRelative
-
getRelativeFlags
-
setRelativeFlags
-
isDismountVehicle
@Obsolete public boolean isDismountVehicle()Removed with 1.19.3 -
setDismountVehicle
@Obsolete public void setDismountVehicle(boolean dismountVehicle) Removed with 1.19.3
-