Examples of InventoryBasic


Examples of de.eydamos.backpack.inventory.InventoryBasic

        AbstractInventoryBackpack inventorySlot;

        if(BackpackUtil.isServerSide()) {
            inventorySlot = new InventoryBackpackSlot(player);
        } else {
            inventorySlot = new InventoryBasic(Localizations.INVENTORY_PERSONAL, false, 1);
        }
        InventoryPickup inventoryPickup = new InventoryPickup();
        ContainerAdvanced container = new ContainerPersonalSlot(inventorySlot, inventoryPickup);

        int maxWidth = 160;
View Full Code Here

Examples of de.eydamos.backpack.inventory.InventoryBasic

    @Override
    @SideOnly(Side.CLIENT)
    public IMessage onMessage(MessageOpenBackpack message, MessageContext ctx) {
        EntityPlayer entityPlayer = Minecraft.getMinecraft().thePlayer;

        IInventory backpackInventory = new InventoryBasic(message.name, message.customName, message.size);

        NBTTagCompound nbtTagCompound = new NBTTagCompound();
        NBTUtil.setString(nbtTagCompound, Constants.NBT.UID, message.uuid);
        NBTUtil.setByte(nbtTagCompound, Constants.NBT.TYPE, message.type);
        NBTUtil.setInteger(nbtTagCompound, Constants.NBT.SLOTS_PER_ROW, message.slotsPerRow);
View Full Code Here

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

Examples of net.minecraft.inventory.InventoryBasic

            }
        });
    }

    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

Examples of net.minecraft.inventory.InventoryBasic

@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

Examples of net.minecraft.inventory.InventoryBasic

    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

Examples of net.minecraft.inventory.InventoryBasic

  }
  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
Copyright © 2018 www.massapi.com. 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.