Class AbstractSliderButton

All Implemented Interfaces:
GuiEventListener, Widget, NarratableEntry, NarrationSupplier
Direct Known Subclasses:
AbstractOptionSliderButton, ForgeSlider, RealmsSlotOptionsScreen.SettingsSlider

public abstract class AbstractSliderButton extends AbstractWidget
  • Field Details

    • value

      protected double value
  • Constructor Details

    • AbstractSliderButton

      public AbstractSliderButton(int p_93579_, int p_93580_, int p_93581_, int p_93582_, Component p_93583_, double p_93584_)
  • Method Details

    • getYImage

      protected int getYImage(boolean p_93607_)
      Overrides:
      getYImage in class AbstractWidget
    • createNarrationMessage

      protected MutableComponent createNarrationMessage()
      Overrides:
      createNarrationMessage in class AbstractWidget
    • updateNarration

      public void updateNarration(NarrationElementOutput p_168798_)
    • renderBg

      protected void renderBg(PoseStack p_93600_, Minecraft p_93601_, int p_93602_, int p_93603_)
      Overrides:
      renderBg in class AbstractWidget
    • onClick

      public void onClick(double p_93588_, double p_93589_)
      Overrides:
      onClick in class AbstractWidget
    • keyPressed

      public boolean keyPressed(int p_93596_, int p_93597_, int p_93598_)
    • setValueFromMouse

      private void setValueFromMouse(double p_93586_)
    • setValue

      private void setValue(double p_93612_)
    • onDrag

      protected void onDrag(double p_93591_, double p_93592_, double p_93593_, double p_93594_)
      Overrides:
      onDrag in class AbstractWidget
    • playDownSound

      public void playDownSound(SoundManager p_93605_)
      Overrides:
      playDownSound in class AbstractWidget
    • onRelease

      public void onRelease(double p_93609_, double p_93610_)
      Overrides:
      onRelease in class AbstractWidget
    • updateMessage

      protected abstract void updateMessage()
    • applyValue

      protected abstract void applyValue()