Package net.minecraft.src

Examples of net.minecraft.src.InventoryPlayer.addItemStackToInventory()


        }
        // Transfer any remaining items in the craft matrix to the player.
        for(int i = 0; i < craftMatrix.getSizeInventory(); i++) {
          ItemStack itemstack = craftMatrix.getStackInSlot(i);
          if(itemstack != null) {
            inventoryPlayer.addItemStackToInventory(itemstack);
            craftMatrix.setInventorySlotContents(i, 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.