Examples of onSlotChange()


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

            } else {

                if(var5.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 0, 4, false)) return null;
                } else if(!mergeItemStack(var5, 4, 5, false)) return null;
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
View Full Code Here

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

            ItemStack var5 = var4.getStack();
            var3 = var5.copy();

            if(par2 < 9 || par2 >= 44) {
                if(!mergeItemStack(var5, 9, 44, false)) return null;
                var4.onSlotChange(var5, var3);
            } else {
                if(var3.getItem() instanceof ItemArmor && !((Slot)inventorySlots.get(45 + ((ItemArmor)var3.getItem()).armorType)).getHasStack()) {
                    int j = 45 + ((ItemArmor)var3.getItem()).armorType;

                    if(!mergeItemStack(var5, j, j + 1, false)) {
View Full Code Here

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

            var3 = var5.copy();

            if(par2 < 5) {
                if(!mergeItemStack(var5, 5, 41, false)) return null;

                var4.onSlotChange(var5, var3);
            } else {
                if(var5.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 1, 5, false)) return null;
                }
                /*
 
View Full Code Here

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

                 * if(par2 < 28){ if (!this.mergeItemStack(var5, 33, 41, false))
                 * return null; }else{ if (!this.mergeItemStack(var5, 5, 33,
                 * false)) return null; } }
                 */
                else if(!mergeItemStack(var5, 0, 1, false)) return null;
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
View Full Code Here

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

            ItemStack var5 = var4.getStack();
            var3 = var5.copy();

            if(par2 < 4) {
                if(!mergeItemStack(var5, 4, 39, false)) return null;
                var4.onSlotChange(var5, var3);
            } else if(var3.getItem() == Itemss.machineUpgrade) {
                if(!mergeItemStack(var5, 0, 4, false)) return null;
                var4.onSlotChange(var5, var3);
            }
View Full Code Here

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

            if(par2 < 4) {
                if(!mergeItemStack(var5, 4, 39, false)) return null;
                var4.onSlotChange(var5, var3);
            } else if(var3.getItem() == Itemss.machineUpgrade) {
                if(!mergeItemStack(var5, 0, 4, false)) return null;
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
View Full Code Here

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

            ItemStack var5 = var4.getStack();
            var3 = var5.copy();

            if(par2 < 4) {
                if(!mergeItemStack(var5, 4, 39, false)) return null;
                var4.onSlotChange(var5, var3);
            } else if(var3.getItem() == Itemss.machineUpgrade || var3.getItem() == Itemss.GPSTool) {
                if(!mergeItemStack(var5, 0, 4, false)) return null;
                var4.onSlotChange(var5, var3);
            }
View Full Code Here

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

            if(par2 < 4) {
                if(!mergeItemStack(var5, 4, 39, false)) return null;
                var4.onSlotChange(var5, var3);
            } else if(var3.getItem() == Itemss.machineUpgrade || var3.getItem() == Itemss.GPSTool) {
                if(!mergeItemStack(var5, 0, 4, false)) return null;
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
View Full Code Here

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

            ItemStack var5 = var4.getStack();
            var3 = var5.copy();

            if(par2 < 14) {
                if(!mergeItemStack(var5, 14, 50, false)) return null;
                var4.onSlotChange(var5, var3);
            } else {
                if(var3.getItem() == Itemss.machineUpgrade) {
                    if(!mergeItemStack(var5, 1, 5, false)) return null;
                } else {
                    if(par2 < 41) {
View Full Code Here

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

                        if(!mergeItemStack(var5, 41, 50, false)) return null;
                    } else {
                        if(!mergeItemStack(var5, 14, 41, false)) return null;
                    }
                }
                var4.onSlotChange(var5, var3);
            }

            if(var5.stackSize == 0) {
                var4.putStack((ItemStack)null);
            } else {
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.