Package vazkii.botania.api.lexicon

Examples of vazkii.botania.api.lexicon.LexiconCategory


      }
      populateIndex();
    } else if(isCategoryIndex()) {
      int categories = allCategories.size();
      for(int i = 0; i < categories + 1; i++) {
        LexiconCategory category = null;
        category = i >= categories ? null : allCategories.get(i);
        int x = i % 4;
        int y = i / 4;

        int size = 27;
View Full Code Here


  @Override
  protected void actionPerformed(GuiButton par1GuiButton) {
    if(par1GuiButton.id >= BOOKMARK_START)
      handleBookmark(par1GuiButton);
    else if(par1GuiButton instanceof GuiButtonCategory) {
      LexiconCategory category = ((GuiButtonCategory) par1GuiButton).getCategory();

      mc.displayGuiScreen(new GuiLexiconIndex(category));
      ClientTickHandler.notifyPageChange();
    }
  }
View Full Code Here

    List<LexiconCategory> categoryList = BotaniaAPI.getAllCategories();
    int shift = 2;
    for(int i = shift; i < 12; i++) {
      int i_ = i - shift;
      GuiButtonInvisible button = (GuiButtonInvisible) buttonList.get(i);
      LexiconCategory category = i_ >= categoryList.size() ? null : categoryList.get(i_);
      if(category != null)
        button.displayString = StatCollector.translateToLocal(category.getUnlocalizedName());
      else {
        button.displayString = StatCollector.translateToLocal("botaniamisc.lexiconIndex");
        break;
      }
    }
View Full Code Here

    BotaniaAPI.addCategory(BotaniaAPI.categoryTools = new BLexiconCategory(LibLexicon.CATEGORY_TOOLS, 0));
    BotaniaAPI.addCategory(BotaniaAPI.categoryBaubles = new BLexiconCategory(LibLexicon.CATEGORY_BAUBLES, 5));
    BotaniaAPI.addCategory(BotaniaAPI.categoryAlfhomancy = new BLexiconCategory(LibLexicon.CATEGORY_ALFHOMANCY, 5));
    BotaniaAPI.addCategory(BotaniaAPI.categoryMisc = new BLexiconCategory(LibLexicon.CATEGORY_MISC, 0));

    LexiconCategory categoryBasics = BotaniaAPI.categoryBasics;
    LexiconCategory categoryMana = BotaniaAPI.categoryMana;
    LexiconCategory categoryGenerationFlowers = BotaniaAPI.categoryGenerationFlowers;
    LexiconCategory categoryFunctionalFlowers = BotaniaAPI.categoryFunctionalFlowers;
    LexiconCategory categoryDevices = BotaniaAPI.categoryDevices;
    LexiconCategory categoryTools = BotaniaAPI.categoryTools;
    LexiconCategory categoryBaubles = BotaniaAPI.categoryBaubles;
    LexiconCategory categoryAlfhomancy = BotaniaAPI.categoryAlfhomancy;
    LexiconCategory categoryMisc = BotaniaAPI.categoryMisc;
   
    // BASICS ENTRIES
    introVideo = new BLexiconEntry(LibLexicon.BASICS_INTRO_VIDEO, categoryBasics);
    introVideo.setPriority().setLexiconPages(new PageGuide("0"));
View Full Code Here

TOP

Related Classes of vazkii.botania.api.lexicon.LexiconCategory

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.