Package net.minecraft.inventory

Examples of net.minecraft.inventory.InventoryBasic


    InventoryBasic potionInv;
    IInventory potionStoreInv;

    public ContainerPotionCreator(InventoryPlayer inventoryPlayer, IInventory potionStoreInv) {
        playerInv = inventoryPlayer;
        potionInv = new InventoryBasic("Potion", true, 1);
        this.potionStoreInv = potionStoreInv;

        addSlotToContainer(new SlotPotion(potionInv, 0, 25, 102));
        for (int i = 0; i < 9; i++)
            addSlotToContainer(new SlotPotionStore(potionStoreInv, i, 8 + i * 18, 14));
View Full Code Here


            }
        });
    }

    private void openPotionGui(EntityPlayerMP player, PacketCustom packet) {
        InventoryBasic b = new InventoryBasic("potionStore", true, 9);
        for (int i = 0; i < b.getSizeInventory(); i++)
            b.setInventorySlotContents(i, packet.readItemStack());
        ServerUtils.openSMPContainer(player, new ContainerPotionCreator(player.inventory, b), new IGuiPacketSender()
        {
            @Override
            public void sendPacket(EntityPlayerMP player, int windowId) {
                PacketCustom packet = new PacketCustom(channel, 24);
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

    this.playerView = inventory;
    CratePileData data = inventory.data;
    fullness = data.getOccupiedSlots() * 255 / data.getCapacity();
  }
  public ContainerCrate(EntityPlayer player, int rows, String name, boolean localized) {
    super(player, new InventoryBasic(name, !localized, 9 * rows), 9, rows);
  }
View Full Code Here

  }
  public GuiBetterStorage(EntityPlayer player, int columns, int rows, IInventory inventory) {
    this(new ContainerBetterStorage(player, inventory, columns, rows));
  }
  public GuiBetterStorage(EntityPlayer player, int columns, int rows, String title, boolean localized) {
    this(player, columns, rows, new InventoryBasic(title, localized, columns * rows));
  }
 
View Full Code Here

TOP

Related Classes of net.minecraft.inventory.InventoryBasic

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.