@Override
 public void read(PacketDataSerializer s) {
   eid = s.readVarInt();
   type = s.readByte();
   location = new Location(s.readInt(), s.readInt(), s.readInt());
   data = new DataWatcher(s);
 }
 @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);
 }