Examples of asItemStack()


Examples of net.minecraftforge.liquids.LiquidStack.asItemStack()

      NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
      int j = nbttagcompound1.getByte("Tank") & 0xff;
      if(j >= 0 && j < _tanks.length)
      {
        LiquidStack l = LiquidStack.loadLiquidStackFromNBT(nbttagcompound1);
        if(l != null && l.asItemStack().getItem() != null && LiquidContainerRegistry.isLiquid(l.asItemStack()))
        {
          _tanks[j].setLiquid(l);
        }
      }
    }
View Full Code Here

Examples of net.minecraftforge.liquids.LiquidStack.asItemStack()

      NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
      int j = nbttagcompound1.getByte("Tank") & 0xff;
      if(j >= 0 && j < _tanks.length)
      {
        LiquidStack l = LiquidStack.loadLiquidStackFromNBT(nbttagcompound1);
        if(l != null && l.asItemStack().getItem() != null && LiquidContainerRegistry.isLiquid(l.asItemStack()))
        {
          _tanks[j].setLiquid(l);
        }
      }
    }
View Full Code Here

Examples of net.minecraftforge.liquids.LiquidStack.asItemStack()

        return super.getItemDisplayName(item);
      }
      LiquidStack liquid = LiquidDictionary.getLiquid(ret, 0);
      if (liquid != null)
      {
        ItemStack q = liquid.asItemStack();
        Item temp = Item.itemsList[q.itemID];
        if (temp != null) ret = temp.getItemDisplayName(q);
      }
      _prefix = true;
      t = super.getItemDisplayName(item);
View Full Code Here

Examples of net.minecraftforge.liquids.LiquidStack.asItemStack()

    if(liquidId <= 0 || stack == null)
    {
      return;
    }
   
    ItemStack itemStack = stack.asItemStack();
   
    Icon icon = stack.getRenderingIcon();
    if (icon == null)
    {
      try
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.