Class AbstractSliderLogic

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractSliderButton
info.u_team.u_team_core.gui.elements.AbstractSliderLogic
All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.layouts.LayoutElement, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier
Direct Known Subclasses:
USlider

public abstract sealed class AbstractSliderLogic extends net.minecraft.client.gui.components.AbstractSliderButton permits USlider
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final boolean
     
    protected static final AbstractSliderLogic.OnSliderChange
     
    protected final double
     
    protected final double
     
    protected int
     
    protected final net.minecraft.network.chat.Component
     
     
    protected final net.minecraft.network.chat.Component
     

    Fields inherited from class net.minecraft.client.gui.components.AbstractSliderButton

    SLIDER_LOCATION, TEXT_MARGIN, TEXTURE_BORDER_X, TEXTURE_BORDER_Y, TEXTURE_HEIGHT, TEXTURE_WIDTH, value

    Fields inherited from class net.minecraft.client.gui.components.AbstractWidget

    ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, visible, WIDGETS_LOCATION, width, x, y

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractSliderLogic(int x, int y, int width, int height, net.minecraft.network.chat.Component prefix, net.minecraft.network.chat.Component suffix, double minValue, double maxValue, double currentValue, boolean decimalPrecision, boolean drawDescription, AbstractSliderLogic.OnSliderChange slider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    double
     
    int
     
    long
     
    protected void
    onDrag(double mouseX, double mouseY, double dragX, double dragY)
     
    void
     
    void
    setSlider(Runnable runnable)
     
    void
    setValue(double newValue)
     
    protected void
     
    void
     

    Methods inherited from class net.minecraft.client.gui.components.AbstractSliderButton

    createNarrationMessage, getHandleTextureY, getTextureY, keyPressed, onClick, onRelease, playDownSound, renderWidget, setFocused, updateWidgetNarration

    Methods inherited from class net.minecraft.client.gui.components.AbstractWidget

    clicked, createTooltipPositioner, defaultButtonNarrationText, getHeight, getMessage, getRectangle, getTabOrderGroup, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled

    Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement

    setPosition
  • Field Details

    • EMPTY_SLIDER

      protected static final AbstractSliderLogic.OnSliderChange EMPTY_SLIDER
    • prefix

      protected final net.minecraft.network.chat.Component prefix
    • suffix

      protected final net.minecraft.network.chat.Component suffix
    • minValue

      protected final double minValue
    • maxValue

      protected final double maxValue
    • decimalPrecision

      protected final boolean decimalPrecision
    • precision

      protected int precision
    • drawDescription

      protected final boolean drawDescription
    • slider

  • Constructor Details

    • AbstractSliderLogic

      protected AbstractSliderLogic(int x, int y, int width, int height, net.minecraft.network.chat.Component prefix, net.minecraft.network.chat.Component suffix, double minValue, double maxValue, double currentValue, boolean decimalPrecision, boolean drawDescription, AbstractSliderLogic.OnSliderChange slider)
  • Method Details

    • setSlider

      public void setSlider(AbstractSliderLogic.OnSliderChange slider)
    • setSlider

      public void setSlider(Runnable runnable)
    • updateMessage

      protected void updateMessage()
      Specified by:
      updateMessage in class net.minecraft.client.gui.components.AbstractSliderButton
    • applyValue

      protected void applyValue()
      Specified by:
      applyValue in class net.minecraft.client.gui.components.AbstractSliderButton
    • onDrag

      protected void onDrag(double mouseX, double mouseY, double dragX, double dragY)
      Overrides:
      onDrag in class net.minecraft.client.gui.components.AbstractSliderButton
    • updateSliderText

      public void updateSliderText()
    • getValueInt

      public int getValueInt()
    • getValueLong

      public long getValueLong()
    • getValue

      public double getValue()
    • setValue

      public void setValue(double newValue)