Examples of IGasItem


Examples of mekanism.api.gas.IGasItem

  public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
  {
    TileEntityGasTank tileEntity = (TileEntityGasTank)world.getTileEntity(x, y, z);
    ItemStack itemStack = new ItemStack(Mekanism.GasTank);

    IGasItem storageTank = (IGasItem)itemStack.getItem();
    storageTank.setGas(itemStack, tileEntity.gasTank.getGas());

    ISustainedInventory inventory = (ISustainedInventory)itemStack.getItem();
    inventory.setInventory(((ISustainedInventory)tileEntity).getInventory(), itemStack);

    return itemStack;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.