Package net.minecraft.item

Examples of net.minecraft.item.ItemStack.copy()


    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      if (inventory.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber >= 0 && slotnumber <= 7)
        {
          mergeItemStack(itemstack, 8, 43, true);
View Full Code Here


    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      itemstack.stackSize = 1;
      if (tileentity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber >= 0 && slotnumber <= 53)
        {
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      itemstack.stackSize = 1;
      if (tileentity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber == 0)
        {
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      itemstack.stackSize = 1;
      if (tileentity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber >= 0 && slotnumber <= 7)
        {
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(i);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      if (appeng.api.Util.getCellRegistry().isCellHandled(itemstack))
      {
        if (i < 3)
        {
          if (!mergeItemStack(itemstack1, 3, 38, false))
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      itemstack.stackSize = 1;
      if (tileentity.isItemValidForSlot(slotnumber, itemstack1))
      {
        if (slotnumber >= 0 && slotnumber <= 5)
        {
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      if (inventoryTileEntity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber == 1 || slotnumber == 0)
        {
          if (!mergeItemStack(itemstack1, 3, 38, false))
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      if (tileentity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber < 10)
        {
          if (!mergeItemStack(itemstack1, 10, 36, false))
View Full Code Here

    ItemStack itemstack = null;
    Slot slot = (Slot) inventorySlots.get(slotnumber);
    if (slot != null && slot.getHasStack())
    {
      ItemStack itemstack1 = slot.getStack();
      itemstack = itemstack1.copy();
      itemstack.stackSize = 1;
      if (tileentity.isItemValidForSlot(0, itemstack1))
      {
        if (slotnumber >= 0 && slotnumber <= 7)
        {
View Full Code Here

    Slot slot = (Slot) inventorySlots.get(slotIndex);
    int numSlots = inventorySlots.size();
    if (slot != null && slot.getHasStack())
    {
      ItemStack stackInSlot = slot.getStack();
      originalStack = stackInSlot.copy();
      if (slotIndex >= numSlots - 9 * 4 && tryShiftItem(stackInSlot, numSlots))
      {
        // NOOP
      } else if (slotIndex >= numSlots - 9 * 4 && slotIndex < numSlots - 9)
      {
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.