Package net.mcft.copy.betterstorage.container

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


  @Override
  public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
    if (world.isRemote || !player.isSneaking()) return stack;
    String title = StackUtils.get(stack, "", "display", "Name");
    int protectedSlot = player.inventory.currentItem;
    Container container = new ContainerKeyring(player, title, protectedSlot);
    PlayerUtils.openGui(player, Constants.containerKeyring, protectedSlot, 1, title, container);
    return stack;
  }
View Full Code Here


    if (!localized) title = name;
   
    if (name.equals(Constants.containerCrate))
      return new GuiCrate(player, rows, title, localized);
    else if (name.equals(Constants.containerKeyring))
      return new GuiBetterStorage(new ContainerKeyring(player, title, columns));
    else if (name.startsWith(Constants.containerThaumiumChest))
      return new GuiThaumiumChest(player, columns, rows, title, localized);
    else if (name.equals(Constants.containerCardboardBox))
      return new GuiBetterStorage(player, columns, rows, new InventoryWrapper(
          new InventoryCardboardBox(new ItemStack[columns * rows]), title, localized));
View Full Code Here

TOP

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

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.