Class ClientboundEntityPositionSyncPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundEntityPositionSyncPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundEntityPositionSyncPacket(int id, double posX, double posY, double posZ, double deltaX, double deltaY, double deltaZ, float yRot, float xRot, boolean onGround) ClientboundEntityPositionSyncPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleandoubledoubledoubleintgetId()doublegetPosX()doublegetPosY()doublegetPosZ()floatgetXRot()floatgetYRot()inthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundEntityPositionSyncPacketwithDeltaX(double deltaX) @NonNull ClientboundEntityPositionSyncPacketwithDeltaY(double deltaY) @NonNull ClientboundEntityPositionSyncPacketwithDeltaZ(double deltaZ) @NonNull ClientboundEntityPositionSyncPacketwithId(int id) @NonNull ClientboundEntityPositionSyncPacketwithOnGround(boolean onGround) @NonNull ClientboundEntityPositionSyncPacketwithPosX(double posX) @NonNull ClientboundEntityPositionSyncPacketwithPosY(double posY) @NonNull ClientboundEntityPositionSyncPacketwithPosZ(double posZ) @NonNull ClientboundEntityPositionSyncPacketwithXRot(float xRot) @NonNull ClientboundEntityPositionSyncPacketwithYRot(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
-
ClientboundEntityPositionSyncPacket
-
ClientboundEntityPositionSyncPacket
public ClientboundEntityPositionSyncPacket(int id, double posX, double posY, double posZ, double deltaX, double deltaY, double deltaZ, float yRot, float xRot, boolean onGround)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
getPosX
public double getPosX() -
getPosY
public double getPosY() -
getPosZ
public double getPosZ() -
getDeltaX
public double getDeltaX() -
getDeltaY
public double getDeltaY() -
getDeltaZ
public double getDeltaZ() -
getYRot
public float getYRot() -
getXRot
public float getXRot() -
isOnGround
public boolean isOnGround() -
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).
-
withPosX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPosY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPosZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDeltaX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDeltaY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDeltaZ
- 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).
-
withOnGround
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-