@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);
 }
 public PacketPlayOutSpawnEntity(Location location, int eid, int type, DataWatcher data) {
   this();
   this.location = location.multiply(32D);
   this.eid = eid;
   this.type = type;
   this.data = data;
 }
 public void setLocation(Location location) {
   this.location = location.multiply(32D);
 }
 public Location getLocation() {
   return location.clone().dividide(32D);
 }