Package de.eydamos.backpack.inventory

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


    @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

TOP

Related Classes of de.eydamos.backpack.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.