congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BookTransformer.contentTableTransformer
Code IndexAdd Tabnine to your IDE (free)

How to use
contentTableTransformer
method
in
slimeknights.mantle.client.book.BookTransformer

Best Java code snippets using slimeknights.mantle.client.book.BookTransformer.contentTableTransformer (Showing top 1 results out of 315)

origin: SlimeKnights/Mantle

/**
 * Adds a book to the loader, and returns a reference object
 * Be warned that the returned BookData object is not immediately populated, and is instead populated when the resources are loaded/reloaded
 *
 * @param name               The name of the book, modid: will be automatically appended to the front of the name unless that is already added
 * @param appendIndex        Whether an index should be added to the front of the book using a BookTransformer
 * @param appendContentTable Whether a table of contents should be added to the front of each section using a BookTransformer
 * @param repositories       All the repositories the book will load the sections from
 * @return The book object, not immediately populated
 */
public static BookData registerBook(String name, boolean appendIndex, boolean appendContentTable, BookRepository... repositories) {
 BookData info = new BookData(repositories);
 books.put(name.contains(":") ? name : Loader.instance().activeModContainer().getModId() + ":" + name, info);
 if(appendIndex) {
  info.addTransformer(BookTransformer.IndexTranformer());
 }
 if(appendContentTable) {
  info.addTransformer(BookTransformer.contentTableTransformer());
 }
 return info;
}
slimeknights.mantle.client.bookBookTransformercontentTableTransformer

Popular methods of BookTransformer

  • IndexTranformer
  • transform
    Called when all the sections within the book are loaded.

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now