Class USlider

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
info.u_team.u_team_core.gui.elements.USlider
All Implemented Interfaces:
BackgroundColorProvider, PerspectiveRenderable, Scalable, ScaleProvider, TextProvider, TextSettingsProvider, WidgetRenderable, 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

  • Nested Class Summary

    Nested classes/interfaces inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic

    AbstractSliderLogic.OnSliderChange

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

    net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority

    Nested classes/interfaces inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider

    TextSettingsProvider.TextRenderType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected RGBA
     
    protected static final AbstractSliderLogic.OnSliderChange
     
    protected static final RGBA
     
    protected float
     
    protected RGBA
     
    protected TextureProvider
     
    protected RGBA
     
    protected TextureProvider
     
    protected RGBA
     
    protected static final RGBA
     

    Fields inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic

    decimalPrecision, drawDescription, maxValue, minValue, precision, prefix, slider, suffix

    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
    Constructor
    Description
    USlider(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 value, boolean decimalPrecision, boolean drawDescription)
     
    USlider(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 value, boolean decimalPrecision, boolean drawDescription, AbstractSliderLogic.OnSliderChange slider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    float
    getCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    getCurrentSliderColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    net.minecraft.network.chat.Component
     
    getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
     
    float
     
     
     
     
    void
    renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    renderWidgetTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
     
    void
    setDisabledTextColor(RGBA disabledTextColor)
     
    void
    setScale(float scale)
     
    void
    setSliderBackgroundColor(RGBA sliderBackgroundColor)
     
    void
    setSliderColor(RGBA sliderColor)
     
    void
    setTextColor(RGBA textColor)
     

    Methods inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic

    applyValue, getValue, getValueInt, getValueLong, onDrag, setSlider, setSlider, setValue, updateMessage, updateSliderText

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

    createNarrationMessage, getHandleTextureY, getTextureY, keyPressed, onClick, onRelease, playDownSound, 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

    Methods inherited from interface info.u_team.u_team_core.api.gui.PerspectiveRenderable

    render

    Methods inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider

    getCurrentTextFont, getCurrentTextRenderType
  • Field Details

    • EMPTY_SLIDER

      protected static final AbstractSliderLogic.OnSliderChange EMPTY_SLIDER
    • WHITE

      protected static final RGBA WHITE
    • LIGHT_GRAY

      protected static final RGBA LIGHT_GRAY
    • sliderBackgroundTextureProvider

      protected TextureProvider sliderBackgroundTextureProvider
    • sliderBackgroundColor

      protected RGBA sliderBackgroundColor
    • sliderTextureProvider

      protected TextureProvider sliderTextureProvider
    • sliderColor

      protected RGBA sliderColor
    • textColor

      protected RGBA textColor
    • disabledTextColor

      protected RGBA disabledTextColor
    • scale

      protected float scale
  • Constructor Details

    • USlider

      public USlider(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 value, boolean decimalPrecision, boolean drawDescription)
    • USlider

      public USlider(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 value, boolean decimalPrecision, boolean drawDescription, AbstractSliderLogic.OnSliderChange slider)
  • Method Details

    • getSliderBackgroundColor

      public RGBA getSliderBackgroundColor()
    • setSliderBackgroundColor

      public void setSliderBackgroundColor(RGBA sliderBackgroundColor)
    • getSliderColor

      public RGBA getSliderColor()
    • setSliderColor

      public void setSliderColor(RGBA sliderColor)
    • getTextColor

      public RGBA getTextColor()
    • setTextColor

      public void setTextColor(RGBA textColor)
    • getDisabledTextColor

      public RGBA getDisabledTextColor()
    • setDisabledTextColor

      public void setDisabledTextColor(RGBA disabledTextColor)
    • getScale

      public float getScale()
      Specified by:
      getScale in interface Scalable
    • setScale

      public void setScale(float scale)
      Specified by:
      setScale in interface Scalable
    • renderWidget

      public void renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderWidget in class net.minecraft.client.gui.components.AbstractSliderButton
    • renderWidgetTexture

      public void renderWidgetTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderWidgetTexture in interface WidgetRenderable
    • renderBackground

      public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderBackground in interface PerspectiveRenderable
    • renderForeground

      public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderForeground in interface PerspectiveRenderable
    • getCurrentBackgroundColor

      public RGBA getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentBackgroundColor in interface BackgroundColorProvider
    • getCurrentSliderColor

      public RGBA getCurrentSliderColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
    • getCurrentText

      public net.minecraft.network.chat.Component getCurrentText()
      Specified by:
      getCurrentText in interface TextProvider
    • getCurrentTextColor

      public RGBA getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentTextColor in interface TextSettingsProvider
    • getCurrentScale

      public float getCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentScale in interface ScaleProvider