Class TCGScreenBase

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.tcg.client.gui.base.TCGScreenBase
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:
BattleSpectatorScreen, CardScreen, CardSelector, CardWelcomeScreen, FlippingCoinScreen, GuiOptional, GuiPeek, PrizeSelectorScreen, TCGRuleEditorScreen, TCGScreenChattableBase

public abstract class TCGScreenBase extends net.minecraft.client.gui.screens.Screen
Created by Hy on 5/8/2016.
  • 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
    boolean
     
    protected List<net.minecraft.client.gui.components.EditBox>
     
    boolean
     

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

    BACKGROUND_LOCATION, children, 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    charTyped(char key, int code)
     
    void
    drawEffectTooltip(net.minecraft.client.gui.GuiGraphics matrix, CommonCardState card, int mouseX, int mouseY, int xOffset, int yOffset)
     
    void
    drawHoveringText(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.network.chat.Component> textLines, int x, int y, Energy type)
     
    void
    drawRectWithBorder(net.minecraft.client.gui.GuiGraphics graphics, int x1, int y1, int x2, int y2, int backgroundColor, int borderColor)
     
    void
    drawRectWithBorder(net.minecraft.client.gui.GuiGraphics graphics, int x1, int y1, int x2, int y2, int backgroundColor, int borderColor, float zLevel)
     
    int
     
    int
     
    boolean
     
    boolean
     
    boolean
    keyPressed(int key, int scanCode, int modifiers)
     
    boolean
    mouseClicked(double mouseX, double mouseY, int mouseButton)
     
    boolean
    mouseReleased(double mouseX, double mouseY, int mouseButton)
     
    void
    render(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks)
     
    void
    renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
     
    void
    renderTransparentBackground(net.minecraft.client.gui.GuiGraphics graphics)
     
    void
     

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

    added, addEventWidget, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, confirmLink, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, openLink, rebuildWidgets, removed, removeWidget, renderDirtBackground, renderWithTooltip, repositionElements, resize, runNarration, scheduleNarration, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, 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

    getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, 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

    • visible

      public boolean visible
    • debug

      public boolean debug
    • textFieldList

      protected List<net.minecraft.client.gui.components.EditBox> textFieldList
  • Constructor Details

    • TCGScreenBase

      public TCGScreenBase()
  • Method Details

    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • render

      public void render(net.minecraft.client.gui.GuiGraphics matrix, int mouseX, int mouseY, float partialTicks)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.Screen
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      renderBackground in class net.minecraft.client.gui.screens.Screen
    • renderTransparentBackground

      public void renderTransparentBackground(net.minecraft.client.gui.GuiGraphics graphics)
      Overrides:
      renderTransparentBackground in class net.minecraft.client.gui.screens.Screen
    • keyPressed

      public boolean keyPressed(int key, int scanCode, int modifiers)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen
    • charTyped

      public boolean charTyped(char key, int code)
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int mouseButton)
    • isLeftMousePressed

      public boolean isLeftMousePressed()
    • isRightMousePressed

      public boolean isRightMousePressed()
    • drawEffectTooltip

      public void drawEffectTooltip(net.minecraft.client.gui.GuiGraphics matrix, CommonCardState card, int mouseX, int mouseY, int xOffset, int yOffset)
    • drawHoveringText

      public void drawHoveringText(net.minecraft.client.gui.GuiGraphics graphics, List<net.minecraft.network.chat.Component> textLines, int x, int y, Energy type)
    • drawRectWithBorder

      public void drawRectWithBorder(net.minecraft.client.gui.GuiGraphics graphics, int x1, int y1, int x2, int y2, int backgroundColor, int borderColor)
    • drawRectWithBorder

      public void drawRectWithBorder(net.minecraft.client.gui.GuiGraphics graphics, int x1, int y1, int x2, int y2, int backgroundColor, int borderColor, float zLevel)
    • getScaledWidth

      public int getScaledWidth()
    • getScaledHeight

      public int getScaledHeight()