Package forestry.storage

Examples of forestry.storage.BackpackDefinition


  protected void registerItems() {
    // CRATE
    ForestryItem.crate.registerItem((new ItemForestry()), "crate");

    // BACKPACKS
    BackpackDefinition definition;

    if (PluginManager.Module.APICULTURE.isEnabled()) {
      definition = new BackpackDefinitionApiarist("apiarist", 0xc4923d);
      BackpackManager.definitions.put(definition.getKey(), definition);
      ForestryItem.apiaristBackpack.registerItem(new ItemNaturalistBackpack(GuiId.ApiaristBackpackGUI.ordinal(), definition).setCreativeTab(Tabs.tabApiculture), "apiaristBag");
    }

    if (PluginManager.Module.LEPIDOPTEROLOGY.isEnabled()) {
      definition = new BackpackDefinitionLepidopterist("lepidopterist", 0x995b31);
      BackpackManager.definitions.put(definition.getKey(), definition);
      ForestryItem.lepidopteristBackpack.registerItem(new ItemNaturalistBackpack(GuiId.LepidopteristBackpackGUI.ordinal(), definition).setCreativeTab(Tabs.tabLepidopterology), "lepidopteristBag");
    }

    definition = new BackpackDefinition("miner", 0x36187d);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.minerBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "minerBag");
    ForestryItem.minerBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "minerBagT2");

    definition = new BackpackDefinition("digger", 0x363cc5);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.diggerBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "diggerBag");
    ForestryItem.diggerBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "diggerBagT2");

    definition = new BackpackDefinition("forester", 0x347427);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.foresterBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "foresterBag");
    ForestryItem.foresterBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "foresterBagT2");

    definition = new BackpackDefinition("hunter", 0x412215);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.hunterBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "hunterBag");
    ForestryItem.hunterBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "hunterBagT2");

    definition = new BackpackDefinition("adventurer", 0x7fb8c2);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.adventurerBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "adventurerBag");
    ForestryItem.adventurerBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "adventurerBagT2");

    definition = new BackpackDefinition("builder", 0xdd3a3a);
    BackpackManager.definitions.put(definition.getKey(), definition);
    ForestryItem.builderBackpack.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T1), "builderBag");
    ForestryItem.builderBackpackT2.registerItem(BackpackManager.backpackInterface.addBackpack(definition, EnumBackpackType.T2), "builderBagT2");
  }
View Full Code Here

TOP

Related Classes of forestry.storage.BackpackDefinition

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.