java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.quests.client.editor.ui.SimpleButton
All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier

public class SimpleButton extends net.minecraft.client.gui.components.AbstractWidget
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    int
     
    int
     
    final int
     
    int
     
    int
     
    int
     

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    active, alpha, focused, height, hoverOrFocusedStartTime, isHovered, message, MIN_SCROLL_PERIOD, packedFGColor, PERIOD_PER_SCROLLED_PIXEL, tabOrderGroup, tooltip, tooltipMsDelay, UNSET_FG_COLOR, visible, wasHoveredOrFocused, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleButton(int id, int x, int y, int w, int h, String text, int color)
     
    SimpleButton(int id, int x, int y, int w, int h, net.minecraft.resources.ResourceLocation image, int bX, int bY, int color)
     
    SimpleButton(int id, int x, int y, int size, String text, int color)
     
    SimpleButton(int id, int x, int y, int size, net.minecraft.resources.ResourceLocation image, int bX, int bY, int color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    isWithin(double x, double y)
     
    void
    renderWidget(net.minecraft.client.gui.GuiGraphics matrix)
     
    protected void
    renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_)
     
    void
    setEnabled(boolean isEnabled)
     
    protected void
    updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_)
     

    Methods inherited from class net.minecraft.client.gui.components.AbstractWidget

    clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage

    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.GuiEventListener

    charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled

    Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement

    setPosition
  • Field Details

    • id

      public final int id
    • x

      public int x
    • y

      public int y
    • w

      public int w
    • h

      public int h
    • bX

      public int bX
    • bY

      public int bY
  • Constructor Details

    • SimpleButton

      public SimpleButton(int id, int x, int y, int size, String text, int color)
    • SimpleButton

      public SimpleButton(int id, int x, int y, int size, net.minecraft.resources.ResourceLocation image, int bX, int bY, int color)
    • SimpleButton

      public SimpleButton(int id, int x, int y, int w, int h, String text, int color)
    • SimpleButton

      public SimpleButton(int id, int x, int y, int w, int h, net.minecraft.resources.ResourceLocation image, int bX, int bY, int color)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean isEnabled)
    • renderWidget

      public void renderWidget(net.minecraft.client.gui.GuiGraphics matrix)
    • isWithin

      public boolean isWithin(double x, double y)
    • renderWidget

      protected void renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_)
      Specified by:
      renderWidget in class net.minecraft.client.gui.components.AbstractWidget
    • updateWidgetNarration

      protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_)
      Specified by:
      updateWidgetNarration in class net.minecraft.client.gui.components.AbstractWidget