Examples of decrStackSize()


Examples of net.minecraft.inventory.Slot.decrStackSize()

            for(int j2 = i1; j2 >= 0 && j2 < this.inventorySlots.size() && itemstack3.stackSize < itemstack3.getMaxStackSize(); j2 += l1) {
              Slot slot3 = (Slot)this.inventorySlots.get(j2);
             
              if(slot3.getHasStack() && func_94527_a(slot3, itemstack3, true) && slot3.canTakeStack(par4EntityPlayer) && this.func_94530_a(itemstack3, slot3) && (i2 != 0 || slot3.getStack().stackSize != slot3.getStack().getMaxStackSize())) {
                int k1 = Math.min(itemstack3.getMaxStackSize() - itemstack3.stackSize, slot3.getStack().stackSize);
                ItemStack itemstack2 = slot3.decrStackSize(k1);
                itemstack3.stackSize += k1;
               
                if(itemstack2.stackSize <= 0) {
                  slot3.putStack((ItemStack)null);
                }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.CodeStream.decrStackSize()

      codeStream.invokeJavaLangClassDesiredAssertionStatus();
      BranchLabel falseLabel = new BranchLabel(codeStream);
      codeStream.ifne(falseLabel);
      codeStream.iconst_1();
      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.fieldAccess(Opcodes.OPC_putstatic, this.assertionSyntheticFieldBinding, null /* default declaringClass */);
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.CodeStream.decrStackSize()

      codeStream.invokeJavaLangClassDesiredAssertionStatus();
      BranchLabel falseLabel = new BranchLabel(codeStream);
      codeStream.ifne(falseLabel);
      codeStream.iconst_1();
      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.fieldAccess(Opcodes.OPC_putstatic, this.assertionSyntheticFieldBinding, null /* default declaringClass */);
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.CodeStream.decrStackSize()

      codeStream.invokeJavaLangClassDesiredAssertionStatus();
      BranchLabel falseLabel = new BranchLabel(codeStream);
      codeStream.ifne(falseLabel);
      codeStream.iconst_1();
      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.fieldAccess(Opcodes.OPC_putstatic, this.assertionSyntheticFieldBinding, null /* default declaringClass */);
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.CodeStream.decrStackSize()

      codeStream.invokeJavaLangClassDesiredAssertionStatus();
      BranchLabel falseLabel = new BranchLabel(codeStream);
      codeStream.ifne(falseLabel);
      codeStream.iconst_1();
      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.fieldAccess(Opcodes.OPC_putstatic, this.assertionSyntheticFieldBinding, null /* default declaringClass */);
 
View Full Code Here

Examples of tconstruct.blocks.logic.DryingRackLogic.decrStackSize()

            }
            else
            {
                if (logic.isStackInSlot(0))
                {
                    ItemStack decrStack = logic.decrStackSize(0, 1);
                    if (decrStack != null)
                        addItemToInventory(player, world, x, y, z, decrStack);
                }
            }
View Full Code Here

Examples of tconstruct.mechworks.logic.TileEntityLandmine.decrStackSize()

            {
                if (!hasRemovedThisIteration && tileEntity.getStackInSlot(i) != null)
                {
                    if (tileEntity.getStackInSlot(i).isItemEqual(item))
                    {
                        tileEntity.decrStackSize(i, 1);
                        item.stackSize--;
                    }
                }

                if (!hasRemovedThisIteration && i == tileEntity.getSizeTriggerInventory() - 1)
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.