Class ClientboundEntityPositionSyncPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundEntityPositionSyncPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionClientboundEntityPositionSyncPacket(int id, boolean isStepped, @Nullable org.cloudburstmc.math.vector.Vector3d endPosition, @Nullable List<ClientboundEntityPositionSyncPacket.PositionStep> steps, float yaw, float pitch, boolean onGround) ClientboundEntityPositionSyncPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable org.cloudburstmc.math.vector.Vector3dintgetId()floatgetPitch()getSteps()floatgetYaw()inthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundEntityPositionSyncPacketwithEndPosition(@Nullable org.cloudburstmc.math.vector.Vector3d endPosition) @NonNull ClientboundEntityPositionSyncPacketwithId(int id) @NonNull ClientboundEntityPositionSyncPacketwithOnGround(boolean onGround) @NonNull ClientboundEntityPositionSyncPacketwithPitch(float pitch) @NonNull ClientboundEntityPositionSyncPacketwithStepped(boolean isStepped) @NonNull ClientboundEntityPositionSyncPacketwithSteps(@Nullable List<ClientboundEntityPositionSyncPacket.PositionStep> steps) @NonNull ClientboundEntityPositionSyncPacketwithYaw(float yaw) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundEntityPositionSyncPacket
public ClientboundEntityPositionSyncPacket(io.netty.buffer.ByteBuf in) -
ClientboundEntityPositionSyncPacket
public ClientboundEntityPositionSyncPacket(int id, boolean isStepped, @Nullable org.cloudburstmc.math.vector.Vector3d endPosition, @Nullable List<ClientboundEntityPositionSyncPacket.PositionStep> steps, float yaw, float pitch, boolean onGround)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getId
public int getId() -
isStepped
public boolean isStepped() -
getEndPosition
public @Nullable org.cloudburstmc.math.vector.Vector3d getEndPosition() -
getSteps
-
getYaw
public float getYaw() -
getPitch
public float getPitch() -
isOnGround
public boolean isOnGround() -
equals
-
canEqual
-
hashCode
-
toString
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStepped
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEndPosition
public @NonNull ClientboundEntityPositionSyncPacket withEndPosition(@Nullable org.cloudburstmc.math.vector.Vector3d endPosition) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSteps
public @NonNull ClientboundEntityPositionSyncPacket withSteps(@Nullable List<ClientboundEntityPositionSyncPacket.PositionStep> steps) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- 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).
-