Class GuideIcon

java.lang.Object
net.ixdarklord.folios.api.client.page.GuideIcon

public final class GuideIcon extends Object
A book's, category's or entry's 16-pixel icon: items (GuideStack, e.g. "minecraft:compass"), or a texture, named by its path ("mymod:textures/gui/guide/compass.png" or {"texture": "..."}).
  • Field Details

  • Method Details

    • of

      public static GuideIcon of(GuideStack stack)
    • texture

      public static GuideIcon texture(net.minecraft.resources.Identifier texture)
    • read

      public static GuideIcon read(@Nullable com.google.gson.JsonElement json)
      Reads an icon from JSON; NONE for null.
    • isEmpty

      public boolean isEmpty()
    • stack

      public @Nullable GuideStack stack()
    • texture

      public @Nullable net.minecraft.resources.Identifier texture()
    • draw

      public void draw(GuidePainter painter, int x, int y)
      Draws it on a page, 16 pixels square at (x, y).
    • draw

      public void draw(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int size, float seconds)
      Draws it on a screen, size pixels square at (x, y), with no tooltip.