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
public non-sealed class USlider
extends AbstractSliderLogic
implements WidgetRenderable, BackgroundColorProvider, TextProvider, Scalable, ScaleProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic
AbstractSliderLogic.OnSliderChangeNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriorityNested classes/interfaces inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider
TextSettingsProvider.TextRenderType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RGBAprotected static final AbstractSliderLogic.OnSliderChangeprotected static final RGBAprotected floatprotected RGBAprotected TextureProviderprotected RGBAprotected TextureProviderprotected RGBAprotected static final RGBAFields inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic
decimalPrecision, drawDescription, maxValue, minValue, precision, prefix, slider, suffixFields 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
ConstructorsConstructorDescriptionUSlider(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 TypeMethodDescriptiongetCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) floatgetCurrentScale(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.ComponentgetCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) floatgetScale()voidrenderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidrenderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidrenderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidrenderWidgetTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidsetDisabledTextColor(RGBA disabledTextColor) voidsetScale(float scale) voidsetSliderBackgroundColor(RGBA sliderBackgroundColor) voidsetSliderColor(RGBA sliderColor) voidsetTextColor(RGBA textColor) Methods inherited from class info.u_team.u_team_core.gui.elements.AbstractSliderLogic
applyValue, getValue, getValueInt, getValueLong, onDrag, setSlider, setSlider, setValue, updateMessage, updateSliderTextMethods inherited from class net.minecraft.client.gui.components.AbstractSliderButton
createNarrationMessage, getHandleTextureY, getTextureY, keyPressed, onClick, onRelease, playDownSound, 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
setPositionMethods inherited from interface info.u_team.u_team_core.api.gui.PerspectiveRenderable
renderMethods inherited from interface info.u_team.u_team_core.api.gui.TextSettingsProvider
getCurrentTextFont, getCurrentTextRenderType
-
Field Details
-
EMPTY_SLIDER
-
WHITE
-
LIGHT_GRAY
-
sliderBackgroundTextureProvider
-
sliderBackgroundColor
-
sliderTextureProvider
-
sliderColor
-
textColor
-
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
-
setSliderBackgroundColor
-
getSliderColor
-
setSliderColor
-
getTextColor
-
setTextColor
-
getDisabledTextColor
-
setDisabledTextColor
-
getScale
public float getScale() -
setScale
public void setScale(float scale) -
renderWidget
public void renderWidget(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Overrides:
renderWidgetin classnet.minecraft.client.gui.components.AbstractSliderButton
-
renderWidgetTexture
public void renderWidgetTexture(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderWidgetTexturein interfaceWidgetRenderable
-
renderBackground
public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderBackgroundin interfacePerspectiveRenderable
-
renderForeground
public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderForegroundin interfacePerspectiveRenderable
-
getCurrentBackgroundColor
public RGBA getCurrentBackgroundColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentBackgroundColorin interfaceBackgroundColorProvider
-
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:
getCurrentTextin interfaceTextProvider
-
getCurrentTextColor
public RGBA getCurrentTextColor(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentTextColorin interfaceTextSettingsProvider
-
getCurrentScale
public float getCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentScalein interfaceScaleProvider
-