Class USlider

java.lang.Object
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

  • 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(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderWidget in class net.minecraft.client.gui.components.AbstractSliderButton
    • renderWidgetTexture

      public void renderWidgetTexture(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderWidgetTexture in interface WidgetRenderable
    • renderBackground

      public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderBackground in interface PerspectiveRenderable
    • renderForeground

      public void renderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      renderForeground in interface PerspectiveRenderable
    • getCurrentBackgroundColor

      public RGBA getCurrentBackgroundColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentBackgroundColor in interface BackgroundColorProvider
    • getCurrentSliderColor

      public RGBA getCurrentSliderColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
    • getCurrentText

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

      public RGBA getCurrentTextColor(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentTextColor in interface TextSettingsProvider
    • getCurrentScale

      public float getCurrentScale(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      getCurrentScale in interface ScaleProvider