Class CheckboxButton

All Implemented Interfaces:
IGuiEventListener, IRenderable

public class CheckboxButton extends AbstractButton
  • Field Details

    • TEXTURE

      private static final ResourceLocation TEXTURE
    • selected

      private boolean selected
    • showLabel

      private final boolean showLabel
  • Constructor Details

    • CheckboxButton

      public CheckboxButton(int p_i232257_1_, int p_i232257_2_, int p_i232257_3_, int p_i232257_4_, ITextComponent p_i232257_5_, boolean p_i232257_6_)
    • CheckboxButton

      public CheckboxButton(int p_i232258_1_, int p_i232258_2_, int p_i232258_3_, int p_i232258_4_, ITextComponent p_i232258_5_, boolean p_i232258_6_, boolean p_i232258_7_)
  • Method Details

    • onPress

      public void onPress()
      Specified by:
      onPress in class AbstractButton
    • selected

      public boolean selected()
    • renderButton

      public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
      Overrides:
      renderButton in class Widget