Class WrapperPlayServerRelEntityMove
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerRelEntityMove
Sent by the server when an entity moves less than 8 blocks; if an entity moves more than 8 blocks
WrapperPlayServerEntityTeleport
should be sent instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerRelEntityMove
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionshort
short
short
int
boolean
void
setDeltaX
(short value) void
setDeltaY
(short value) void
setDeltaZ
(short value) void
setEntityId
(int value) void
setOnGround
(boolean value) Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperPlayServerRelEntityMove
public WrapperPlayServerRelEntityMove()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerRelEntityMove
public WrapperPlayServerRelEntityMove(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getEntityId
public int getEntityId() -
setEntityId
public void setEntityId(int value) -
getDeltaX
public short getDeltaX() -
setDeltaX
public void setDeltaX(short value) -
getDeltaY
public short getDeltaY() -
setDeltaY
public void setDeltaY(short value) -
getDeltaZ
public short getDeltaZ() -
setDeltaZ
public void setDeltaZ(short value) -
getOnGround
public boolean getOnGround() -
setOnGround
public void setOnGround(boolean value)
-