Class SpellInfoScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.binaris.wizardry.client.gui.screens.abstr.SpellInfoScreen
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement
Direct Known Subclasses:
SpellBookScreen

public abstract class SpellInfoScreen extends net.minecraft.client.gui.screens.Screen
  • 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
    protected int
     
    protected int
     
    protected static final String
     
    protected final int
     
    protected final int
     

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

    BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SpellInfoScreen(int xSize, int ySize, net.minecraft.network.chat.Component component)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawBackgroundLayer(int left, int top, int mouseX, int mouseY)
     
    protected void
    drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int left, int top, int mouseX, int mouseY)
     
    abstract Spell
     
    abstract net.minecraft.resources.ResourceLocation
     
    protected void
     
    void
    render(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     
    protected void
    setTextureSize(int width, int height)
     

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

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

    getFocused, isDragging, setDragging, setFocused

    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

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused

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

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • TRANSLATION_KEY_PREFIX

      protected static final String TRANSLATION_KEY_PREFIX
      See Also:
    • xSize

      protected final int xSize
    • ySize

      protected final int ySize
    • textureWidth

      protected int textureWidth
    • textureHeight

      protected int textureHeight
  • Constructor Details

    • SpellInfoScreen

      protected SpellInfoScreen(int xSize, int ySize, net.minecraft.network.chat.Component component)
  • Method Details

    • setTextureSize

      protected void setTextureSize(int width, int height)
    • getSpell

      public abstract Spell getSpell()
    • getTexture

      public abstract net.minecraft.resources.ResourceLocation getTexture()
    • render

      public void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.Screen
    • drawBackgroundLayer

      protected void drawBackgroundLayer(int left, int top, int mouseX, int mouseY)
    • drawForegroundLayer

      protected void drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int left, int top, int mouseX, int mouseY)
    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen