Class ClientboundMoveEntityPosPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundMoveEntityPosPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClientboundMoveEntityPosPacket(int entityId, boolean onGround, int stepCount, @Nullable List<ClientboundMoveEntityPosPacket.DeltaStep> steps, double moveX, double moveY, double moveZ) ClientboundMoveEntityPosPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintdoublegetMoveX()doublegetMoveY()doublegetMoveZ()int@Nullable List<ClientboundMoveEntityPosPacket.DeltaStep> getSteps()inthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundMoveEntityPosPacketwithEntityId(int entityId) @NonNull ClientboundMoveEntityPosPacketwithMoveX(double moveX) @NonNull ClientboundMoveEntityPosPacketwithMoveY(double moveY) @NonNull ClientboundMoveEntityPosPacketwithMoveZ(double moveZ) @NonNull ClientboundMoveEntityPosPacketwithOnGround(boolean onGround) @NonNull ClientboundMoveEntityPosPacketwithStepCount(int stepCount) @NonNull ClientboundMoveEntityPosPacketwithSteps(@Nullable List<ClientboundMoveEntityPosPacket.DeltaStep> steps) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundMoveEntityPosPacket
public ClientboundMoveEntityPosPacket(io.netty.buffer.ByteBuf in) -
ClientboundMoveEntityPosPacket
public ClientboundMoveEntityPosPacket(int entityId, boolean onGround, int stepCount, @Nullable List<ClientboundMoveEntityPosPacket.DeltaStep> steps, double moveX, double moveY, double moveZ)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
isOnGround
public boolean isOnGround() -
getStepCount
public int getStepCount() -
getSteps
-
getMoveX
public double getMoveX() -
getMoveY
public double getMoveY() -
getMoveZ
public double getMoveZ() -
equals
-
canEqual
-
hashCode
-
toString
-
withEntityId
- 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).
-
withStepCount
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSteps
public @NonNull ClientboundMoveEntityPosPacket withSteps(@Nullable List<ClientboundMoveEntityPosPacket.DeltaStep> steps) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMoveX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMoveY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMoveZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-