Class AbstractButton

All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
Direct Known Subclasses:
BeaconScreen.BeaconScreenButton, Button, Checkbox, CycleButton

public abstract class AbstractButton extends AbstractWidget
  • Field Details

  • Constructor Details

    • AbstractButton

      public AbstractButton(int p_93365_, int p_93366_, int p_93367_, int p_93368_, Component p_93369_)
  • Method Details

    • onPress

      public abstract void onPress()
    • renderWidget

      public void renderWidget(PoseStack p_275468_, int p_275505_, int p_275674_, float p_275696_)
      Specified by:
      renderWidget in class AbstractWidget
    • renderString

      public void renderString(PoseStack p_275258_, Font p_275290_, int p_275734_)
    • getTextureY

      private int getTextureY()
    • onClick

      public void onClick(double p_93371_, double p_93372_)
      Overrides:
      onClick in class AbstractWidget
    • keyPressed

      public boolean keyPressed(int p_93374_, int p_93375_, int p_93376_)