@Override
 public void write(PacketDataWrapper wrapper) throws IOException {
   wrapper.writeVarInt(entityId);
   wrapper.writeByte(dX);
   wrapper.writeByte(dY);
   wrapper.writeByte(dZ);
   wrapper.writeBoolean(onGround);
 }
Exemplo n.º 2
0
 @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());
   }
 }