Class AbstractSlider

All Implemented Interfaces:
IGuiEventListener, IRenderable
Direct Known Subclasses:
GameSettingsSlider, RealmsSlotOptionsScreen.SettingsSlider

public abstract class AbstractSlider extends Widget
  • Field Details

    • value

      protected double value
  • Constructor Details

    • AbstractSlider

      public AbstractSlider(int p_i232253_1_, int p_i232253_2_, int p_i232253_3_, int p_i232253_4_, ITextComponent p_i232253_5_, double p_i232253_6_)
  • Method Details

    • getYImage

      protected int getYImage(boolean p_230989_1_)
      Overrides:
      getYImage in class Widget
    • createNarrationMessage

      protected IFormattableTextComponent createNarrationMessage()
      Overrides:
      createNarrationMessage in class Widget
    • renderBg

      protected void renderBg(MatrixStack p_230441_1_, Minecraft p_230441_2_, int p_230441_3_, int p_230441_4_)
      Overrides:
      renderBg in class Widget
    • onClick

      public void onClick(double p_230982_1_, double p_230982_3_)
      Overrides:
      onClick in class Widget
    • keyPressed

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
    • setValueFromMouse

      private void setValueFromMouse(double p_230973_1_)
    • setValue

      private void setValue(double p_230980_1_)
    • onDrag

      protected void onDrag(double p_230983_1_, double p_230983_3_, double p_230983_5_, double p_230983_7_)
      Overrides:
      onDrag in class Widget
    • playDownSound

      public void playDownSound(SoundHandler p_230988_1_)
      Overrides:
      playDownSound in class Widget
    • onRelease

      public void onRelease(double p_231000_1_, double p_231000_3_)
      Overrides:
      onRelease in class Widget
    • updateMessage

      protected abstract void updateMessage()
    • applyValue

      protected abstract void applyValue()