Examples of onSlotChanged()


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

          return null;

        if (var5.stackSize == 0)
          var4.putStack(null);
        else
          var4.onSlotChanged();

        if (var5.stackSize == var3.stackSize)
          return null;

        var4.onPickupFromSlot(par1EntityPlayer, var5);
View Full Code Here

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

      } else if (!inv.isItemValidForSlot(slot, stackInSlot) || !mergeItemStack(stackInSlot, 0, 13 * 9, false)) {
        return null;
      }
      if (stackInSlot.stackSize == 0)
        slotObject.putStack(null);
      else slotObject.onSlotChanged();
    }

    return stack;
  }

View Full Code Here

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

        slot = (Slot) this.inventorySlots.get(k);
        stackInSlot = slot.getStack();

        if (slot.isItemValid(stack) && stackInSlot == null) {
          slot.putStack(ItemHelper.cloneStack(stack, Math.min(stack.stackSize, slot.getSlotStackLimit())));
          slot.onSlotChanged();

          if (slot.getStack() != null) {
            stack.stackSize -= slot.getStack().stackSize;
            slotFound = true;
          }
View Full Code Here

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

        return null;
      }
      if (stackInSlot.stackSize <= 0) {
        slot.putStack((ItemStack) null);
      } else {
        slot.onSlotChanged();
      }
      if (stackInSlot.stackSize == stack.stackSize) {
        return null;
      }
    }
View Full Code Here

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

                  }
                  slot2.onPickupFromSlot(player, inventoryPlayer.getItemStack());
                }
              }
            }
            slot2.onSlotChanged();
          }
        }
      } else if (p_75144_3_ == 2 && p_75144_2_ >= 0 && p_75144_2_ < 9) {
        slot2 = (Slot) this.inventorySlots.get(slotIndex);
View Full Code Here

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

          if (l <= slotLimit) {
            stack.stackSize = 0;
            stackInSlot.stackSize = l;
            slot.putStack(stackInSlot);
            slot.onSlotChanged();
            slotFound = true;
          } else if (stackInSlot.stackSize < slotLimit) {
            stack.stackSize -= slotLimit - stackInSlot.stackSize;
            stackInSlot.stackSize = slotLimit;
            slot.putStack(stackInSlot);
View Full Code Here

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

            slotFound = true;
          } else if (stackInSlot.stackSize < slotLimit) {
            stack.stackSize -= slotLimit - stackInSlot.stackSize;
            stackInSlot.stackSize = slotLimit;
            slot.putStack(stackInSlot);
            slot.onSlotChanged();
            slotFound = true;
          }
        }
        k += ascending ? -1 : 1;
      }
View Full Code Here

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

            {
                var3.putStack((ItemStack) null);
            }
            else
            {
                var3.onSlotChanged();
            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
View Full Code Here

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

            {
                var3.putStack((ItemStack) null);
            }
            else
            {
                var3.onSlotChanged();
            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
View Full Code Here

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

            {
                var3.putStack((ItemStack) null);
            }
            else
            {
                var3.onSlotChanged();
            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
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.