Class PonderButton

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
All Implemented Interfaces:
TickableGuiEventListener, 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, net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension

public class PonderButton extends BoxWidget
  • Field Details

    • COLOR_IDLE

      public static final Couple<Color> COLOR_IDLE
    • COLOR_HOVER

      public static final Couple<Color> COLOR_HOVER
    • COLOR_CLICK

      public static final Couple<Color> COLOR_CLICK
    • COLOR_DISABLED

      public static final Couple<Color> COLOR_DISABLED
    • item

      @Nullable protected net.minecraft.world.item.ItemStack item
    • tag

      @Nullable protected PonderTag tag
    • shortcut

      @Nullable protected net.minecraft.client.KeyMapping shortcut
    • flash

      protected LerpedFloat flash
  • Constructor Details

    • PonderButton

      public PonderButton(int x, int y)
    • PonderButton

      public PonderButton(int x, int y, int width, int height)
  • Method Details

    • withShortcut

      public <T extends PonderButton> T withShortcut(net.minecraft.client.KeyMapping key)
    • showingTag

      public <T extends PonderButton> T showingTag(PonderTag tag)
    • showing

      public <T extends PonderButton> T showing(net.minecraft.world.item.ItemStack item)
    • flash

      public void flash()
    • dim

      public void dim()
    • tick

      public void tick()
      Specified by:
      tick in interface TickableGuiEventListener
      Overrides:
      tick in class BoxWidget
    • beforeRender

      protected void beforeRender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      beforeRender in class BoxWidget
    • doRender

      public void doRender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      doRender in class BoxWidget
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      isFocused in class net.minecraft.client.gui.components.AbstractWidget
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
    • isValidClickButton

      protected boolean isValidClickButton(int i)
      Overrides:
      isValidClickButton in class net.minecraft.client.gui.components.AbstractWidget
    • getItem

      @Nullable public net.minecraft.world.item.ItemStack getItem()
    • getTag

      @Nullable public PonderTag getTag()
    • isVisible

      public boolean isVisible()