Class GuideLibrary

java.lang.Object
net.ixdarklord.folios.internal.client.GuideLibrary

public final class GuideLibrary extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable String
    author(net.minecraft.resources.ResourceLocation book)
    Who a book says it is from ("author" in book.json, raw); null when it doesn't say.
    static @Nullable GuideBook
    book(net.minecraft.resources.ResourceLocation id)
     
    static Map<net.minecraft.resources.ResourceLocation,GuideBook>
     
    static @Nullable com.google.gson.JsonObject
    build(net.minecraft.resources.ResourceLocation id)
    A build file as written, by its path under folios/ without ".json" (mymod:my_guide/builds/tower); null for none.
    celebrations(net.minecraft.resources.ResourceLocation book)
    How a book celebrates the player finishing part of it ("celebrations" in book.json); off unless it says.
    static void
    reload(net.minecraft.server.packs.resources.ResourceManager manager)
     
    static @Nullable GuideSession
    session(net.minecraft.resources.ResourceLocation id)
    A book's laid-out pages, kept between openings; null when there is no such book.
    static @Nullable GuideSession
    session(net.minecraft.resources.ResourceLocation id, int width, int height)
    A book's laid-out pages for pages width by height; the default session for the default page size.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • book

      @Nullable public static @Nullable GuideBook book(net.minecraft.resources.ResourceLocation id)
    • books

      public static Map<net.minecraft.resources.ResourceLocation,GuideBook> books()
    • author

      @Nullable public static @Nullable String author(net.minecraft.resources.ResourceLocation book)
      Who a book says it is from ("author" in book.json, raw); null when it doesn't say.
    • celebrations

      public static CelebrationSettings celebrations(net.minecraft.resources.ResourceLocation book)
      How a book celebrates the player finishing part of it ("celebrations" in book.json); off unless it says.
    • build

      @Nullable public static @Nullable com.google.gson.JsonObject build(net.minecraft.resources.ResourceLocation id)
      A build file as written, by its path under folios/ without ".json" (mymod:my_guide/builds/tower); null for none.
    • session

      @Nullable public static @Nullable GuideSession session(net.minecraft.resources.ResourceLocation id)
      A book's laid-out pages, kept between openings; null when there is no such book.
    • session

      @Nullable public static @Nullable GuideSession session(net.minecraft.resources.ResourceLocation id, int width, int height)
      A book's laid-out pages for pages width by height; the default session for the default page size.
    • reload

      public static void reload(net.minecraft.server.packs.resources.ResourceManager manager)