Package vazkii.botania.api.lexicon

Examples of vazkii.botania.api.lexicon.ILexicon


    populateIndex();
  }

  void buildEntries() {
    entriesToDisplay.clear();
    ILexicon lex = (ILexicon) stackUsed.getItem();
    for(LexiconEntry entry : category == null ? BotaniaAPI.getAllEntries() : category.entries) {
      if(lex.isKnowledgeUnlocked(stackUsed, entry.getKnowledgeType()) && StatCollector.translateToLocal(entry.getUnlocalizedName()).toLowerCase().contains(searchField.getText().toLowerCase().trim()))
        entriesToDisplay.add(entry);
    }
    Collections.sort(entriesToDisplay);
  }
View Full Code Here


  private static boolean hasElvenKnowledge() {
    EntityPlayer player = Minecraft.getMinecraft().thePlayer;
    if (player != null) {
      for (ItemStack stack : player.inventory.mainInventory) {
        if (stack != null && stack.getItem() instanceof ILexicon) {
          ILexicon lexicon = (ILexicon) stack.getItem();
          if (lexicon.isKnowledgeUnlocked(stack, BotaniaAPI.elvenKnowledge)) {
            return true;
          }
        }
      }
    }
View Full Code Here

TOP

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

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.