Examples of ILexicon


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

Examples of vazkii.botania.api.lexicon.ILexicon

  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
Copyright © 2018 www.massapi.com. 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.