Package net.mcft.copy.betterstorage.container

Examples of net.mcft.copy.betterstorage.container.ContainerBetterStorage


    return WorldUtils.isTileEntityUsableByPlayer(this, player);
  }
 
  /** Creates and returns a Container for this container. */
  public ContainerBetterStorage createContainer(EntityPlayer player) {
    return new ContainerBetterStorage(player, getPlayerInventory());
  }
View Full Code Here


    return true;
  }
 
  /** Opens the GUI of this container for the player. */
  public void openGui(EntityPlayer player) {
    ContainerBetterStorage container = createContainer(player);
    PlayerUtils.openGui(player, getName(), container.getColumns(), container.getRows(), getCustomTitle(), container);
  }
View Full Code Here

@SideOnly(Side.CLIENT)
public class GuiThaumiumChest extends GuiBetterStorage {
 
  public GuiThaumiumChest(EntityPlayer player, int columns, int rows, String name, boolean localized) {
    super(new ContainerBetterStorage(player, new InventoryBasic(name, localized, columns * rows), columns, rows, 20));
  }
View Full Code Here

  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

    inventory = new InventoryBackpackEquipped(carrier, player, inventory);
    if (!inventory.isUseableByPlayer(player)) return false;
   
    int columns = backpackType.getBackpackColumns();
    int rows = backpackType.getBackpackRows();
    Container container = new ContainerBetterStorage(player, inventory, columns, rows);
   
    String title = StackUtils.get(backpack, "", "display", "Name");
    PlayerUtils.openGui(player, inventory.getInventoryName(), columns, rows, title, container);
   
    return true;
View Full Code Here

    ySize = container.getHeight();
   
    container.setUpdateGui(this);
  }
  public GuiBetterStorage(EntityPlayer player, int columns, int rows, IInventory inventory) {
    this(new ContainerBetterStorage(player, inventory, columns, rows));
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.container.ContainerBetterStorage

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.