76777879808182
equip = EntityEquipmentMessage.LEGGINGS_SLOT; break; default: return; } entity.getNetwork().callProtocolEvent(new EntityEquipmentEvent(entity, equip, item), true); }
58596061626364
set(HELD_SLOT, held); } @Override public void updateHeldItem(Entity entity) { entity.getNetwork().callProtocolEvent(new EntityEquipmentEvent(entity, EntityEquipmentMessage.HELD_SLOT, get()), true); }
43444546474849
@Override public void updateHeldItem(Entity entity) { ItemStack item = this.get(this.selected); entity.getNetwork().callProtocolEvent(new EntityEquipmentEvent(entity, EntityEquipmentMessage.HELD_SLOT, item), true); }