Package net.mcft.copy.betterstorage.inventory

Examples of net.mcft.copy.betterstorage.inventory.InventoryTileEntity


 
  @Override
  public InventoryTileEntity getPlayerInventory() {
    TileEntityConnectable connected = getConnectedTileEntity();
    if (connected != null)
      return new InventoryTileEntity(this, (isMain() ? this : connected),
                                           (isMain() ? connected : this));
    else return super.getPlayerInventory();
  }
View Full Code Here


    // Workaround because instance variables get initialized AFTER the
    // parent constructor. This gets called IN the parent constructor.
    crafting = new ItemStack[9];
    output = new ItemStack[9];
    stationInventory = new InventoryCraftingStation(this);
    return new InventoryTileEntity(this, stationInventory);
  }
View Full Code Here

    contents = ((size > 0) ? new ItemStack[size] : null);
    playerInventory = makePlayerInventory();
  }
 
  public InventoryTileEntity makePlayerInventory() {
    return ((contents != null) ? new InventoryTileEntity(this) : null);
  }
View Full Code Here

  @Override
  public int getRows() { return ItemCardboardBox.getRows(); }
 
  @Override
  public InventoryTileEntity makePlayerInventory() {
    return new InventoryTileEntity(this, new InventoryCardboardBox(contents));
  }
View Full Code Here

  @Override
  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player,
                                  int side, float hitX, float hitY, float hitZ) {
    if (!world.isRemote) {
      TileEntityBackpack backpack = WorldUtils.get(world, x, y, z, TileEntityBackpack.class);
      IInventory inventory = new InventoryTileEntity(backpack, player.getInventoryEnderChest());
      Container container = new ContainerBetterStorage(player, inventory, 9, 3);
      String name = "container." + Constants.modId + ".enderBackpack";
      PlayerUtils.openGui(player, name, 9, 3, backpack.getCustomTitle(), container);
    }
    return true;
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.inventory.InventoryTileEntity

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.