Class ScalableSlider

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractButton
net.minecraft.client.gui.components.Button
All Implemented Interfaces:
BackgroundColorProvider, PerspectiveRenderable, Scalable, ScaleProvider, TextProvider, TextSettingsProvider, TooltipRenderable, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier

public class ScalableSlider extends USlider implements Scalable, ScaleProvider
  • Field Details

    • scale

      protected float scale
  • Constructor Details

    • ScalableSlider

      public ScalableSlider(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, boolean isInContainer, float scale)
    • ScalableSlider

      public ScalableSlider(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, boolean isInContainer, float scale, AbstractSliderLogic.OnSliderChange slider)
    • ScalableSlider

      public ScalableSlider(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, boolean isInContainer, float scale, net.minecraft.client.gui.components.Button.OnTooltip tooltip)
    • ScalableSlider

      public ScalableSlider(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, boolean isInContainer, float scale, AbstractSliderLogic.OnSliderChange slider, net.minecraft.client.gui.components.Button.OnTooltip tooltip)
  • Method Details

    • getScale

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

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

      public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
      Specified by:
      renderForeground in interface PerspectiveRenderable
      Overrides:
      renderForeground in class USlider
    • getCurrentScale

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