11121314151617
@Override public PlayerActionMessage decode(ByteBuf buf) throws IOException { int id = ByteBufUtils.readVarInt(buf); int action = buf.readByte(); int jumpBoost = ByteBufUtils.readVarInt(buf); return new PlayerActionMessage(id, action, jumpBoost); }