Class ClientboundPlayerPositionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.player.ClientboundPlayerPositionPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundPlayerPositionPacket(int id, double x, double y, double z, double dX, double dY, double dZ, float yRot, float xRot, PositionElement... relative) ClientboundPlayerPositionPacket(int id, org.cloudburstmc.math.vector.Vector3d position, org.cloudburstmc.math.vector.Vector3d deltaMovement, float yRot, float xRot, @NonNull List<PositionElement> relatives) ClientboundPlayerPositionPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.cloudburstmc.math.vector.Vector3dintgetId()org.cloudburstmc.math.vector.Vector3d@NonNull List<PositionElement>floatgetXRot()floatgetYRot()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundPlayerPositionPacketwithDeltaMovement(org.cloudburstmc.math.vector.Vector3d deltaMovement) @NonNull ClientboundPlayerPositionPacketwithId(int id) @NonNull ClientboundPlayerPositionPacketwithPosition(org.cloudburstmc.math.vector.Vector3d position) @NonNull ClientboundPlayerPositionPacketwithRelatives(@NonNull List<PositionElement> relatives) @NonNull ClientboundPlayerPositionPacketwithXRot(float xRot) @NonNull ClientboundPlayerPositionPacketwithYRot(float yRot) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundPlayerPositionPacket
public ClientboundPlayerPositionPacket(int id, double x, double y, double z, double dX, double dY, double dZ, float yRot, float xRot, PositionElement... relative) -
ClientboundPlayerPositionPacket
-
ClientboundPlayerPositionPacket
public ClientboundPlayerPositionPacket(int id, org.cloudburstmc.math.vector.Vector3d position, org.cloudburstmc.math.vector.Vector3d deltaMovement, float yRot, float xRot, @NonNull @NonNull List<PositionElement> relatives)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
getPosition
public org.cloudburstmc.math.vector.Vector3d getPosition() -
getDeltaMovement
public org.cloudburstmc.math.vector.Vector3d getDeltaMovement() -
getYRot
public float getYRot() -
getXRot
public float getXRot() -
getRelatives
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPosition
public @NonNull ClientboundPlayerPositionPacket withPosition(org.cloudburstmc.math.vector.Vector3d position) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDeltaMovement
public @NonNull ClientboundPlayerPositionPacket withDeltaMovement(org.cloudburstmc.math.vector.Vector3d deltaMovement) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYRot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withXRot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRelatives
public @NonNull ClientboundPlayerPositionPacket withRelatives(@NonNull @NonNull List<PositionElement> relatives) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-