Class HandheldRenderer

java.lang.Object
net.ixdarklord.folios.internal.client.handheld.HandheldRenderer

public final class HandheldRenderer extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    While the book's hands are drawn: the arms take no pose for what they hold (AvatarRendererMixin).
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    draw(float partialTick, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, net.minecraft.client.player.LocalPlayer player, int light)
    Draws the book if one is held open; returns whether it was (the hands are then not drawn).
    static void
    drawShared(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, GuideReader reader)
    Draws a book lying open as someone else reads it, for those around to read along: the spread they have open, leaves turning as they turn them, the tabs, nothing pressable; part open, as a book in the hands lies.
    static void
    drawShared(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, GuideReader reader, float open)
    As drawShared(PoseStack, SubmitNodeCollector, int, GuideReader), open of the way open: 0 held up shut (its cover to the reader, its strap on), then unlatched and opened, as the reader's own opens.
     

    Methods inherited from class java.lang.Object

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

    • drawingHands

      public static boolean drawingHands
      While the book's hands are drawn: the arms take no pose for what they hold (AvatarRendererMixin).
  • Method Details

    • palette

      public static GuidePalette palette(GuideBook book)
    • draw

      public static boolean draw(float partialTick, com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, net.minecraft.client.player.LocalPlayer player, int light)
      Draws the book if one is held open; returns whether it was (the hands are then not drawn).
    • drawShared

      public static void drawShared(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, GuideReader reader)
      Draws a book lying open as someone else reads it, for those around to read along: the spread they have open, leaves turning as they turn them, the tabs, nothing pressable; part open, as a book in the hands lies. A screen book is drawn as its reader holds it before its screen, its pages a likeness of pages. In page pixels from the spine at the head, as the reader's own is (the caller places it and flips y).
    • drawShared

      public static void drawShared(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, GuideReader reader, float open)
      As drawShared(PoseStack, SubmitNodeCollector, int, GuideReader), open of the way open: 0 held up shut (its cover to the reader, its strap on), then unlatched and opened, as the reader's own opens.