private void initArmor(Almacen almacen) { Iterator<Almacen> it = almacen.getAlmacenes().iterator(); while (it.hasNext()) { Almacen alm = it.next(); addArmor(alm); } }
public void initInventory(Almacen almacen) { if (inventory == null) { inventory = new ItemStack[9]; } Iterator<Almacen> it = almacen.getAlmacenes().iterator(); while (it.hasNext()) { Almacen alm = it.next(); addItem(alm); } }