Examples of onPickupFromSlot()


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

      if(stackInSlot.stackSize == stack.stackSize)
      {
        return null;
      }
     
      slotObject.onPickupFromSlot(player, stackInSlot);
    }
   
    return stack;
  }
}
View Full Code Here

Examples of net.minecraft.inventory.SlotCrafting.onPickupFromSlot()

    if(fake == null) {
      fake = MainProxy.getFakePlayer(this);
    }
    result = result.copy();
    SlotCrafting craftingSlot = new SlotCrafting(fake, crafter, resultInv, 0, 0, 0);
    craftingSlot.onPickupFromSlot(fake, result);
    for(int i=0;i<9;i++) {
      ItemStack left = crafter.getStackInSlot(i);
      crafter.setInventorySlotContents(i, null);
      if(left != null) {
        left.stackSize = inv.addCompressed(left, false);
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.