Package vazkii.botania.api.wiki

Examples of vazkii.botania.api.wiki.IWikiProvider


    }
  }

  @Override
  public boolean openWikiPage(World world, Block block, MovingObjectPosition pos) {
    IWikiProvider wiki = WikiHooks.getWikiFor(block);
    String url = wiki.getWikiURL(world, pos);
    if(url != null && !url.isEmpty()) {
      try {
        Desktop.getDesktop().browse(new URI(url));
      } catch(Exception e) {
        e.printStackTrace();
View Full Code Here


      }
    }

    if(!draw && pos.entityHit == null) {
      profiler.startSection("wikiLookup");
      IWikiProvider provider = WikiHooks.getWikiFor(block);
      String url = provider.getWikiURL(mc.theWorld, pos);
      if(url != null && !url.isEmpty()) {
        String name = provider.getBlockName(mc.theWorld, pos);
        String wikiName = provider.getWikiName(mc.theWorld, pos);
        drawStr = name + " @ " + EnumChatFormatting.AQUA + wikiName;
        draw = true;
      }
      profiler.endSection();
    }
View Full Code Here

TOP

Related Classes of vazkii.botania.api.wiki.IWikiProvider

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.