Class AbstractButton

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.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

      protected void renderWidget(GuiGraphics p_281670_, int p_282682_, int p_281714_, float p_282542_)
      Specified by:
      renderWidget in class AbstractWidget
    • renderString

      public void renderString(GuiGraphics p_283366_, Font p_283054_, int p_281656_)
    • 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_)