Package cn.nukkit.network.protocol
Class PlayerActionPacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.PlayerActionPacket
- All Implemented Interfaces:
Cloneable
- Author:
- Nukkit Project Team
-
Field Summary
Modifier and TypeFieldDescriptionint
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
long
int
static final byte
int
int
int
Fields inherited from class cn.nukkit.network.protocol.DataPacket
EMPTY_ARRAY, isEncoded, reliability
Fields inherited from class cn.nukkit.utils.BinaryStream
count, offset
-
Constructor Summary
-
Method Summary
Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, reset, setChannel, tryEncode
Methods inherited from class cn.nukkit.utils.BinaryStream
feof, get, get, getArray, getAttributeList, getBlockFace, getBlockVector3, getBoolean, getBuffer, getByte, getByteArray, getCount, getEntityLink, getEntityRuntimeId, getEntityUniqueId, getFloat, getFloat, getImage, getInt, getLFloat, getLFloat, getLInt, getLLong, getLong, getLShort, getLTriad, getOffset, getRecipeIngredient, getShort, getSignedBlockPosition, getSkin, getSlot, getString, getTag, getTriad, getUnsignedVarInt, getUnsignedVarLong, getUUID, getVarInt, getVarLong, getVector3f, put, putArray, putArray, putArray, putAttributeList, putBlockFace, putBlockVector3, putBlockVector3, putBoolean, putByte, putByteArray, putEntityLink, putEntityRuntimeId, putEntityUniqueId, putFloat, putGameRules, putImage, putInt, putLFloat, putLInt, putLLong, putLong, putLShort, putLTriad, putRecipeIngredient, putRecipeIngredient, putShort, putSignedBlockPosition, putSkin, putSlot, putSlot, putString, putTag, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector3f, putVector3f, setBuffer, setBuffer, setOffset
-
Field Details
-
NETWORK_ID
public static final byte NETWORK_ID- See Also:
-
ACTION_START_BREAK
public static final int ACTION_START_BREAK- See Also:
-
ACTION_ABORT_BREAK
public static final int ACTION_ABORT_BREAK- See Also:
-
ACTION_STOP_BREAK
public static final int ACTION_STOP_BREAK- See Also:
-
ACTION_GET_UPDATED_BLOCK
public static final int ACTION_GET_UPDATED_BLOCK- See Also:
-
ACTION_DROP_ITEM
public static final int ACTION_DROP_ITEM- See Also:
-
ACTION_START_SLEEPING
public static final int ACTION_START_SLEEPING- See Also:
-
ACTION_STOP_SLEEPING
public static final int ACTION_STOP_SLEEPING- See Also:
-
ACTION_RESPAWN
public static final int ACTION_RESPAWN- See Also:
-
ACTION_JUMP
public static final int ACTION_JUMP- See Also:
-
ACTION_START_SPRINT
public static final int ACTION_START_SPRINT- See Also:
-
ACTION_STOP_SPRINT
public static final int ACTION_STOP_SPRINT- See Also:
-
ACTION_START_SNEAK
public static final int ACTION_START_SNEAK- See Also:
-
ACTION_STOP_SNEAK
public static final int ACTION_STOP_SNEAK- See Also:
-
ACTION_CREATIVE_PLAYER_DESTROY_BLOCK
public static final int ACTION_CREATIVE_PLAYER_DESTROY_BLOCK- See Also:
-
ACTION_DIMENSION_CHANGE_ACK
public static final int ACTION_DIMENSION_CHANGE_ACK- See Also:
-
ACTION_START_GLIDE
public static final int ACTION_START_GLIDE- See Also:
-
ACTION_STOP_GLIDE
public static final int ACTION_STOP_GLIDE- See Also:
-
ACTION_BUILD_DENIED
public static final int ACTION_BUILD_DENIED- See Also:
-
ACTION_CONTINUE_BREAK
public static final int ACTION_CONTINUE_BREAK- See Also:
-
ACTION_SET_ENCHANTMENT_SEED
public static final int ACTION_SET_ENCHANTMENT_SEED- See Also:
-
ACTION_START_SWIMMING
public static final int ACTION_START_SWIMMING- See Also:
-
ACTION_STOP_SWIMMING
public static final int ACTION_STOP_SWIMMING- See Also:
-
ACTION_START_SPIN_ATTACK
public static final int ACTION_START_SPIN_ATTACK- See Also:
-
ACTION_STOP_SPIN_ATTACK
public static final int ACTION_STOP_SPIN_ATTACK- See Also:
-
ACTION_INTERACT_BLOCK
public static final int ACTION_INTERACT_BLOCK- See Also:
-
ACTION_PREDICT_DESTROY_BLOCK
public static final int ACTION_PREDICT_DESTROY_BLOCK- See Also:
-
ACTION_CONTINUE_DESTROY_BLOCK
public static final int ACTION_CONTINUE_DESTROY_BLOCK- See Also:
-
ACTION_START_ITEM_USE_ON
public static final int ACTION_START_ITEM_USE_ON- See Also:
-
ACTION_STOP_ITEM_USE_ON
public static final int ACTION_STOP_ITEM_USE_ON- See Also:
-
entityId
public long entityId -
action
public int action -
x
public int x -
y
public int y -
z
public int z -
resultPosition
-
face
public int face
-
-
Constructor Details
-
PlayerActionPacket
public PlayerActionPacket()
-
-
Method Details
-
decode
public void decode()- Specified by:
decode
in classDataPacket
-
encode
public void encode()- Specified by:
encode
in classDataPacket
-
pid
public byte pid()- Specified by:
pid
in classDataPacket
-
toString
-