Package net.minecraft.inventory

Examples of net.minecraft.inventory.InventoryLargeChest


        new Vect(chest.xCoord, chest.yCoord, chest.zCoord + 1), new Vect(chest.xCoord, chest.yCoord, chest.zCoord - 1) };

    for (Vect pos : adjacent) {
      TileEntity otherchest = chest.getWorldObj().getTileEntity(pos.x, pos.y, pos.z);
      if (otherchest instanceof TileEntityChest)
        return new InventoryLargeChest("", chest, (TileEntityChest) otherchest);
    }

    return inventory;
  }
View Full Code Here


    }

    if ( teB == null )
      return teA;

    return new InventoryLargeChest( "", teA, (TileEntityChest) teB );
  }
View Full Code Here

      if (chest.adjacentChestZPos != null) {
        adjacent = chest.adjacentChestZPos;
      }

      if (adjacent != null) {
        return new InventoryLargeChest("", inv, adjacent);
      }
      return inv;
    }
    return inv;
  }
View Full Code Here

    public static final ForgeDirection[] chestSides = new ForgeDirection[]{ForgeDirection.WEST, ForgeDirection.EAST, ForgeDirection.NORTH, ForgeDirection.SOUTH};

    public static IInventory getChest(TileEntityChest chest) {
        for (ForgeDirection fside : chestSides) {
            if (chest.getWorldObj().getBlock(chest.xCoord + fside.offsetX, chest.yCoord + fside.offsetY, chest.zCoord + fside.offsetZ) == chest.getBlockType())
                return new InventoryLargeChest("container.chestDouble",
                        (TileEntityChest) chest.getWorldObj().getTileEntity(chest.xCoord + fside.offsetX, chest.yCoord + fside.offsetY, chest.zCoord + fside.offsetZ), chest);
        }
        return chest;
    }
View Full Code Here

TOP

Related Classes of net.minecraft.inventory.InventoryLargeChest

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.