Tabnine Logo
BookTransformer
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: SlimeKnights/TinkersConstruct

 public static void init() {
  BookLoader.registerPageType(ContentMaterial.ID, ContentMaterial.class);
  BookLoader.registerPageType(ContentModifier.ID, ContentModifier.class);
  BookLoader.registerPageType(ContentModifierFortify.ID, ContentModifierFortify.class);
  BookLoader.registerPageType(ContentTool.ID, ContentTool.class);
  BookLoader.registerPageType(ContentSingleStatMultMaterial.ID, ContentSingleStatMultMaterial.class);
  BookLoader.registerPageType(ContentImageText2.ID, ContentImageText2.class);
  INSTANCE.addRepository(new FileRepository(Util.resource("book")));
  INSTANCE.addTransformer(new ToolSectionTransformer());
  INSTANCE.addTransformer(new MaterialSectionTransformer());
  INSTANCE.addTransformer(new ModifierSectionTransformer());
  INSTANCE.addTransformer(new BowMaterialSectionTransformer());
  INSTANCE.addTransformer(BookTransformer.IndexTranformer());
 }
}
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;
}
origin: SlimeKnights/Mantle

transformer.transform(this);
origin: SleepyTrousers/EnderIO

public static void integrate() {
 INSTANCE.addRepository(new FileRepository(EnderIO.DOMAIN + ":eiobook"));
 INSTANCE.addTransformer(BookTransformer.IndexTranformer());
}
slimeknights.mantle.client.bookBookTransformer

Most used methods

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Notification (javax.management)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
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