Class AbstractSliderButton

java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractSliderButton
All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
Direct Known Subclasses:
AbstractOptionSliderButton, ForgeSlider, RealmsSlotOptionsScreen.SettingsSlider

public abstract class AbstractSliderButton extends AbstractWidget
  • Field Details

  • 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

    • getTextureY

      protected int getTextureY()
    • getHandleTextureY

      protected int getHandleTextureY()
    • createNarrationMessage

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

      public void updateWidgetNarration(NarrationElementOutput p_168798_)
      Specified by:
      updateWidgetNarration in class AbstractWidget
    • renderWidget

      public void renderWidget(GuiGraphics p_283427_, int p_281447_, int p_282852_, float p_282409_)
      Specified by:
      renderWidget in class AbstractWidget
    • onClick

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

      public void setFocused(boolean p_265705_)
      Specified by:
      setFocused in interface GuiEventListener
      Overrides:
      setFocused 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()