equipped = getBackpackItem(player);
if (equipped == null)
return null;
ISpeciesRoot speciesRoot = AlleleManager.alleleRegistry.getSpeciesRoot("rootBees");
PagedInventory inventory = new PagedInventory(ItemBackpack.class, Defaults.SLOTS_BACKPACK_APIARIST, equipped, x, y, z, cleanId);
return new GuiNaturalistInventory(speciesRoot, player, new ContainerNaturalistBackpack(speciesRoot, player.inventory, inventory, guiData, 25), inventory, guiData, 5);
case BackpackGUI:
equipped = getBackpackItem(player);
if (equipped == null)
return null;
return new GuiBackpack(new ContainerBackpack(player, new ItemInventory(ItemBackpack.class, Defaults.SLOTS_BACKPACK_DEFAULT, equipped)));
case BackpackT2GUI:
equipped = getBackpackItem(player);
if (equipped == null)
return null;
return new GuiBackpackT2(new ContainerBackpack(player, new ItemInventory(ItemBackpack.class, Defaults.SLOTS_BACKPACK_T2, equipped)));
case LepidopteristBackpackGUI:
equipped = getBackpackItem(player);
if (equipped == null)
return null;
speciesRoot = AlleleManager.alleleRegistry.getSpeciesRoot("rootButterflies");
inventory = new PagedInventory(ItemBackpack.class, Defaults.SLOTS_BACKPACK_APIARIST, equipped, x, y, z, id);
return new GuiNaturalistInventory(speciesRoot, player, new ContainerNaturalistBackpack(speciesRoot, player.inventory, inventory, guiData, 25), inventory, guiData, 5);
default:
return null;
}