Java Code Examples for com.nukkitx.protocol.bedrock.packet.PlayerActionPacket#setRuntimeEntityId()
The following examples show how to use
com.nukkitx.protocol.bedrock.packet.PlayerActionPacket#setRuntimeEntityId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlayerActionSerializer_v354.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 2
Source File: PlayerActionSerializer_v388.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 3
Source File: PlayerActionSerializer_v340.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 4
Source File: PlayerActionSerializer_v313.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 5
Source File: PlayerActionSerializer_v361.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 6
Source File: PlayerActionSerializer_v332.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }
Example 7
Source File: PlayerActionSerializer_v291.java From Protocol with Apache License 2.0 | 5 votes |
@Override public void deserialize(ByteBuf buffer, PlayerActionPacket packet) { packet.setRuntimeEntityId(VarInts.readUnsignedLong(buffer)); packet.setAction(Action.values()[VarInts.readInt(buffer)]); packet.setBlockPosition(BedrockUtils.readBlockPosition(buffer)); packet.setFace(VarInts.readInt(buffer)); }