Package extracells.util

Examples of extracells.util.SpecialFluidStack


    {
      for (IAEItemStack itemstack : currentItems)
      {
        if (itemstack.getItem() == FLUIDDISPLAY.getItemInstance() && itemstack.getStackSize() > 0)
        {
          fluidsInNetwork.add(new SpecialFluidStack(itemstack.getItemDamage(), itemstack.getStackSize()));
        }
      }
    }

    PacketDispatcher.sendPacketToAllPlayers(getDescriptionPacket());
View Full Code Here


    NBTTagCompound fluids = packet.data.getCompoundTag("fluids");
    fluidsInNetwork = new ArrayList<SpecialFluidStack>();
    int[] fluidIDs = fluids.getIntArray("FluidIDs");
    for (int i = 0; i < fluidIDs.length; i++)
    {
      fluidsInNetwork.add(new SpecialFluidStack(fluidIDs[i], fluids.getLong("FluidAmount#" + i)));
    }

    NBTTagCompound craftableFluids = packet.data.getCompoundTag("craftablefluids");
    craftableFluidsInNetwork = new ArrayList<Fluid>();
    int[] craftableFluidIDs = craftableFluids.getIntArray("FluidIDs");
View Full Code Here

    {
      for (IAEItemStack stack : iss)
      {
        if (stack != null && stack.getItem() == ItemEnum.FLUIDDISPLAY.getItemInstance())
        {
          fluidList.add(new SpecialFluidStack(stack.getItemDamage(), stack.getStackSize()));
        }
      }
    }
  }
View Full Code Here

    if (cellArray == null)
      return 0;
    IAEItemStack notFilled = cellArray.calculateItemAddition(createFluidItemStack(toFill));
    IAEItemStack filled = createFluidItemStack(toFill);
    if (notFilled != null)
      filled = createFluidItemStack(new SpecialFluidStack(notFilled.getItemDamage(), toFill.amount - notFilled.getStackSize()));
    if (doFill)
      cellArray.addItems(filled);

    getGrid().useMEEnergy(filled.getStackSize() == 0 ? 0 : filled.getStackSize() / 4, "FluidInterface");
    return filled.getStackSize();
View Full Code Here

    return toReturn;
  }

  public IAEItemStack createFluidItemStack(FluidStack stack)
  {
    return createFluidItemStack(new SpecialFluidStack(stack.fluidID, stack.amount));
  }
View Full Code Here

TOP

Related Classes of extracells.util.SpecialFluidStack

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.