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 ClassesNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected static final AbstractSliderLogic.OnSliderChangeprotected final doubleprotected final doubleprotected intprotected final net.minecraft.network.chat.Componentprotected AbstractSliderLogic.OnSliderChangeprotected final net.minecraft.network.chat.ComponentFields inherited from class net.minecraft.client.gui.components.AbstractSliderButton
SLIDER_LOCATION, TEXT_MARGIN, TEXTURE_BORDER_X, TEXTURE_BORDER_Y, TEXTURE_HEIGHT, TEXTURE_WIDTH, valueFields inherited from class net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSliderLogic(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
Methods inherited from class net.minecraft.client.gui.components.AbstractSliderButton
createNarrationMessage, getHandleTextureY, getTextureY, keyPressed, onClick, onRelease, playDownSound, renderWidget, setFocused, updateWidgetNarrationMethods 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, wrapDefaultNarrationMessageMethods 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, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
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
-
setSlider
-
updateMessage
protected void updateMessage()- Specified by:
updateMessagein classnet.minecraft.client.gui.components.AbstractSliderButton
-
applyValue
protected void applyValue()- Specified by:
applyValuein classnet.minecraft.client.gui.components.AbstractSliderButton
-
onDrag
protected void onDrag(double mouseX, double mouseY, double dragX, double dragY) - Overrides:
onDragin classnet.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)
-