Package net.minecraft.item

Examples of net.minecraft.item.ItemStack.copy()


      doubledYelloriumDust = dustYellorium.copy();
      doubledYelloriumDust.stackSize = 2;
    }

    if(yelloriteOre != null && doubledYelloriumDust != null) {
      addMekanismEnrichmentChamberRecipe(yelloriteOre.copy(), doubledYelloriumDust.copy());
      addMekanismCombinerRecipe(doubledYelloriumDust.copy(), yelloriteOre.copy());
    }
 
    if(ingotYellorium != null && dustYellorium != null) {
      addMekanismCrusherRecipe(ingotYellorium.copy(), dustYellorium.copy());
View Full Code Here


      doubledYelloriumDust.stackSize = 2;
    }

    if(yelloriteOre != null && doubledYelloriumDust != null) {
      addMekanismEnrichmentChamberRecipe(yelloriteOre.copy(), doubledYelloriumDust.copy());
      addMekanismCombinerRecipe(doubledYelloriumDust.copy(), yelloriteOre.copy());
    }
 
    if(ingotYellorium != null && dustYellorium != null) {
      addMekanismCrusherRecipe(ingotYellorium.copy(), dustYellorium.copy());
    }
View Full Code Here

        Slot slot = (Slot)this.inventorySlots.get(par2);

        if (slot != null && slot.getHasStack())
        {
            ItemStack itemstack1 = slot.getStack();
            itemstack = itemstack1.copy();

            if (par2 == 0)
            {
                if (!this.mergeItemStack(itemstack1, 9+4, 45+4, true))
                {
View Full Code Here

    Slot slotObject = (Slot) inventorySlots.get(slot);
   
    if(slotObject != null && slotObject.getHasStack())
    {
      ItemStack stackInSlot = slotObject.getStack();
      stack = stackInSlot.copy();
     
      if(slot < 2)
      {
        if(!mergeItemStack(stackInSlot, 2, inventorySlots.size(), true))
        {
View Full Code Here

    Slot slotclicked = (Slot)inventorySlots.get(par1);

    if (slotclicked != null && slotclicked.getHasStack())
    {
      ItemStack sourceStack = slotclicked.getStack();
      original = sourceStack.copy();

      if (par1 < playerInventoryStartSlot)
      {
        if (!this.mergeItemStack(sourceStack, playerInventoryStartSlot, inventorySlots.size(), true))
        {
View Full Code Here

    Slot slotclicked = (Slot)inventorySlots.get(slotID);

    if (slotclicked != null && slotclicked.getHasStack())
    {
      ItemStack sourceStack = slotclicked.getStack();
      original = sourceStack.copy();

      // Charging Bench Slots
      if (slotID < playerInventoryStartSlot)
      {
        // Look for electric armor to move into armor equipped slots from inside our charging bench
View Full Code Here

    Slot slotclicked = (Slot)inventorySlots.get(slotID);

    if (slotclicked != null && slotclicked.getHasStack())
    {
      ItemStack sourceStack = slotclicked.getStack();
      original = sourceStack.copy();

      if (slotID < playerInventoryStartSlot)
      {
        // Move stuff to the player's inventory
        if (!this.mergeItemStack(sourceStack, playerInventoryStartSlot, inventorySlots.size(), true))
View Full Code Here

        {
          ((IInventory)te).setInventorySlotContents(slotNumber, null);
        }
        else
        {
          playerStack = playerStack.copy();
          playerStack.stackSize = 1;
          ((IInventory)te).setInventorySlotContents(slotNumber, playerStack);
        }
      }
    }
View Full Code Here

    Slot slotObject = (Slot) inventorySlots.get(slot);
   
    if(slotObject != null && slotObject.getHasStack())
    {
      ItemStack stackInSlot = slotObject.getStack();
      stack = stackInSlot.copy();
     
      if(slot < 3)
      {
        if(!mergeItemStack(stackInSlot, 3, inventorySlots.size(), true))
        {
View Full Code Here

    Slot slotObject = (Slot) inventorySlots.get(slot);
   
    if(slotObject != null && slotObject.getHasStack())
    {
      ItemStack stackInSlot = slotObject.getStack();
      stack = stackInSlot.copy();
     
      if(slot < 4)
      {
        if(!mergeItemStack(stackInSlot, 4, inventorySlots.size(), true))
        {
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.