Class BookMainScreen

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.falkory.arcanumapi.client.gui.AbstractBookScreen
com.falkory.arcanumapi.client.gui.BookMainScreen
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget

public class BookMainScreen extends AbstractBookScreen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
    static int
     
    static float
     
    static float
     
    static int
     
    static int
     
    static float
     
    static float
     

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    font, height, itemRenderer, minecraft, passEvents, title, width

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    BookMainScreen(BookMain book, net.minecraft.client.gui.screens.Screen parentScreen, net.minecraft.world.item.ItemStack item)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawDebug(com.mojang.blaze3d.vertex.PoseStack stack)
     
    float
     
    float
     
    boolean
    mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
     
    boolean
    mouseScrolled(double mouseX, double mouseY, double scroll)
     
    void
    render(com.mojang.blaze3d.vertex.PoseStack stack, int $$1, int $$2, float tickDelta)
     
    void
    setXPan(float newPan)
     
    void
    setYPan(float newPan)
     
    protected void
    smoothZoom(float tickDelta)
     

    Methods inherited from class com.falkory.arcanumapi.client.gui.AbstractBookScreen

    getBook, isPauseScreen, onClose

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseReleased, setInitialFocus

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved
  • Field Details

    • targetZoom

      public static float targetZoom
    • zoom

      public static float zoom
    • maxPanX

      public static float maxPanX
    • maxPanY

      public static float maxPanY
    • minBookX

      public static int minBookX
    • minBookY

      public static int minBookY
    • bookWidth

      public static int bookWidth
    • bookHeight

      public static int bookHeight
  • Constructor Details

    • BookMainScreen

      public BookMainScreen(BookMain book, net.minecraft.client.gui.screens.Screen parentScreen, net.minecraft.world.item.ItemStack item)
  • Method Details

    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack stack, int $$1, int $$2, float tickDelta)
      Specified by:
      render in interface net.minecraft.client.gui.components.Widget
      Overrides:
      render in class AbstractBookScreen
    • smoothZoom

      protected void smoothZoom(float tickDelta)
    • drawDebug

      protected void drawDebug(com.mojang.blaze3d.vertex.PoseStack stack)
    • setXPan

      public void setXPan(float newPan)
    • getXPan

      public float getXPan()
    • setYPan

      public void setYPan(float newPan)
    • getYPan

      public float getYPan()
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double scroll)