Examples of onPickupFromSlot()


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

          var4.onSlotChanged();

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

        var4.onPickupFromSlot(par1EntityPlayer, var5);
      }
    }

    return var3;
  }
View Full Code Here

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

                inventoryPlayer.setItemStack(itemstack5);

                if (itemstack3.stackSize == 0) {
                  slot2.putStack((ItemStack) null);
                }
                slot2.onPickupFromSlot(player, inventoryPlayer.getItemStack());
              } else if (slot2.isItemValid(itemstack4)) {
                if (itemstack3.getItem() == itemstack4.getItem() && itemstack3.getItemDamage() == itemstack4.getItemDamage()
                    && ItemStack.areItemStackTagsEqual(itemstack3, itemstack4)) {
                  l1 = p_75144_2_ == 0 ? itemstack4.stackSize : 1;
View Full Code Here

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

                  itemstack3 = slot2.decrStackSize(l1);

                  if (itemstack3.stackSize == 0) {
                    slot2.putStack((ItemStack) null);
                  }
                  slot2.onPickupFromSlot(player, inventoryPlayer.getItemStack());
                }
              }
            }
            slot2.onSlotChanged();
          }
View Full Code Here

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

            if ((slot2.inventory != inventoryPlayer || !slot2.isItemValid(itemstack3)) && itemstack3 != null) {
              if (l1 > -1) {
                inventoryPlayer.addItemStackToInventory(itemstack3);
                slot2.decrStackSize(itemstack5.stackSize);
                slot2.putStack((ItemStack) null);
                slot2.onPickupFromSlot(player, itemstack5);
              }
            } else {
              slot2.decrStackSize(itemstack5.stackSize);
              slot2.putStack(itemstack3);
              slot2.onPickupFromSlot(player, itemstack5);
View Full Code Here

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

                slot2.onPickupFromSlot(player, itemstack5);
              }
            } else {
              slot2.decrStackSize(itemstack5.stackSize);
              slot2.putStack(itemstack3);
              slot2.onPickupFromSlot(player, itemstack5);
            }
          } else if (!slot2.getHasStack() && itemstack3 != null && slot2.isItemValid(itemstack3)) {
            inventoryPlayer.setInventorySlotContents(p_75144_2_, (ItemStack) null);
            slot2.putStack(itemstack3);
          }
View Full Code Here

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

      } else if (p_75144_3_ == 4 && inventoryPlayer.getItemStack() == null && slotIndex >= 0) {
        slot2 = (Slot) this.inventorySlots.get(slotIndex);

        if (slot2 != null && slot2.getHasStack() && slot2.canTakeStack(player)) {
          itemstack3 = slot2.decrStackSize(p_75144_2_ == 0 ? 1 : slot2.getStack().stackSize);
          slot2.onPickupFromSlot(player, itemstack3);
          player.dropPlayerItemWithRandomChoice(itemstack3, true);
        }
      } else if (p_75144_3_ == 6 && slotIndex >= 0) {
        slot2 = (Slot) this.inventorySlots.get(slotIndex);
        itemstack3 = inventoryPlayer.getItemStack();
View Full Code Here

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

                itemstack3.stackSize += k1;

                if (itemstack2.stackSize <= 0) {
                  slot3.putStack((ItemStack) null);
                }
                slot3.onPickupFromSlot(player, itemstack2);
              }
            }
          }
        }
        this.detectAndSendChanges();
View Full Code Here

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

            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
            var3.onPickupFromSlot(par1EntityPlayer, var4);
        }
       
        return var2;
    }
}
View Full Code Here

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

            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
            var3.onPickupFromSlot(par1EntityPlayer, var4);
        }
       
        return var2;
    }
}
View Full Code Here

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

            }
           
            if (var4.stackSize == var2.stackSize)
                return null;
           
            var3.onPickupFromSlot(par1EntityPlayer, var4);
        }
       
        return var2;
    }
   
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.