@Override public void write(PacketDataWrapper wrapper) throws IOException { wrapper.writeVarInt(entityId); wrapper.writeByte(dX); wrapper.writeByte(dY); wrapper.writeByte(dZ); wrapper.writeBoolean(onGround); }
@Override public void write(PacketDataWrapper buf) throws IOException { buf.writeVarInt(amount); for (int i = 0; i < amount; i++) { buf.writeString(entries.get(i).getLeft()); buf.writeVarInt(entries.get(i).getRight()); } }