@Override public void write(PacketDataSerializer s) { s.writeVarInt(eid); s.writeByte(type); s.writeInt(location.getBlockX()); s.writeInt(location.getBlockY()); s.writeInt(location.getBlockZ()); data.write(s); }