Package net.minecraft.src

Examples of net.minecraft.src.IInventory


    * @param coordinate - The coordinate to empty
    * @return True if successful
    */
   public boolean emptyContainer(Coordinate coordinate) {
      try {
         IInventory i = (IInventory)world.getBlockTileEntity(coordinate.getBlockX(), coordinate.getBlockY(), coordinate.getBlockZ());
         for (int j = 0; j < i.getSizeInventory(); j++) {
            i.setInventorySlotContents(j, null);
         }
      } catch (Exception e) {
         return false;
      }
      return true;
View Full Code Here


                .isExcludedFromExtraction(Block.blocksList[blockId])) {
            return;
        }

        if (tile instanceof IInventory) {
            IInventory inventory = (IInventory) tile;

            ItemStack stack = checkExtract(inventory, true,
                                           pos.orientation.reverse());

            if (stack == null || stack.stackSize == 0) {
View Full Code Here

                                  Orientations from) {
        //    if (inventory instanceof ISpecialInventory) {
        //      //At the moment we are going to let special inventorys handle there own. Might change if popular demand
        //      return ((ISpecialInventory) inventory).extractItem(doRemove, from);
        //    }
        IInventory inv = Utils.getInventory(inventory);
        ItemStack result = checkExtractGeneric(inv, doRemove, from);
        return result;
    }
View Full Code Here

TOP

Related Classes of net.minecraft.src.IInventory

Copyright © 2018 www.massapicom. 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.