@Override
 public void write(NetOutput out) throws IOException {
   out.writeVarInt(this.entityId);
   out.writeVarInt(MagicValues.value(Integer.class, this.slot));
   NetUtil.writeItem(out, this.item);
 }
 @Override
 public void read(NetInput in) throws IOException {
   this.entityId = in.readVarInt();
   this.slot = MagicValues.key(EquipmentSlot.class, in.readVarInt());
   this.item = NetUtil.readItem(in);
 }