Search in sources :

Example 1 with ItemInventoryBackpackPaged

use of forestry.storage.inventory.ItemInventoryBackpackPaged in project ForestryMC by ForestryMC.

the class ItemBackpackNaturalist method getGui.

@Override
@SideOnly(Side.CLIENT)
public GuiContainer getGui(EntityPlayer player, ItemStack heldItem, int page) {
    ItemInventoryBackpackPaged inventory = new ItemInventoryBackpackPaged(player, Constants.SLOTS_BACKPACK_APIARIST, heldItem, this);
    ContainerNaturalistBackpack container = new ContainerNaturalistBackpack(player, inventory, page);
    return new GuiNaturalistInventory(speciesRoot, player, container, page, 5);
}
Also used : ContainerNaturalistBackpack(forestry.storage.gui.ContainerNaturalistBackpack) ItemInventoryBackpackPaged(forestry.storage.inventory.ItemInventoryBackpackPaged) GuiNaturalistInventory(forestry.core.gui.GuiNaturalistInventory) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

GuiNaturalistInventory (forestry.core.gui.GuiNaturalistInventory)1 ContainerNaturalistBackpack (forestry.storage.gui.ContainerNaturalistBackpack)1 ItemInventoryBackpackPaged (forestry.storage.inventory.ItemInventoryBackpackPaged)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1