Class ScalableEditBox
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
info.u_team.u_team_core.gui.elements.UEditBox
info.u_team.u_team_core.gui.elements.ScalableEditBox
- All Implemented Interfaces:
BackgroundColorProvider
,PerspectiveRenderable
,RenderTickable
,Scalable
,ScaleProvider
,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
-
Nested Class Summary
Nested classes/interfaces inherited from class info.u_team.u_team_core.gui.elements.UEditBox
UEditBox.OnTooltip
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
FieldsFields inherited from class info.u_team.u_team_core.gui.elements.UEditBox
backgroundColor, backgroundFrameColor, BLACK, cursorColor, DARK_GRAY, DARKER_GRAY, disabledTextColor, EMPTY_TOOLTIP, GRAY, LIGHT_GRAY, LIGHTER_GRAY, onTooltip, suggestionTextColor, textColor, unfocusedBackgroundFrameColor, WHITE
Fields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, bordered, canLoseFocus, cursorPos, DEFAULT_TEXT_COLOR, displayPos, font, formatter, FORWARDS, frame, highlightPos, isEditable, maxLength, suggestion, value
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionScalableEditBox
(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title, float scale) ScalableEditBox
(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title, float scale, UEditBox.OnTooltip tooltip) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getCurrentScale
(double mouseX, double mouseY) float
getCurrentScale
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) float
getScale()
boolean
mouseClicked
(double mouseX, double mouseY, int button) void
renderForeground
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
setScale
(float scale) Methods inherited from class info.u_team.u_team_core.gui.elements.UEditBox
getBackgroundColor, getBackgroundFrameColor, getCurrentBackgroundColor, getCurrentBackgroundFrameColor, getCurrentCursorColor, getCurrentSuggestionTextColor, getCurrentTextColor, getCursorColor, getDisabledTextColor, getSuggestionTextColor, getTextColor, getUnfocusedBackgroundFrameColor, renderBackground, renderButton, renderTick, renderToolTip, renderToolTip, setBackgroundColor, setBackgroundFrameColor, setCursorColor, setDisabledTextColor, setPreviousText, setSuggestionTextColor, setTextColor, setTextColor, setTextColorUneditable, setTooltip, setUnfocusedBackgroundFrameColor
Methods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, changeFocus, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, keyPressed, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setValue, setVisible, setX, tick, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, 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
keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
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
-
Field Details
-
scale
protected float scale
-
-
Constructor Details
-
ScalableEditBox
public ScalableEditBox(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title, float scale) -
ScalableEditBox
public ScalableEditBox(net.minecraft.client.gui.Font font, int x, int y, int width, int height, UEditBox previousEditBox, net.minecraft.network.chat.Component title, float scale, UEditBox.OnTooltip tooltip)
-
-
Method Details
-
getScale
public float getScale() -
setScale
public void setScale(float scale) -
renderForeground
public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderForeground
in interfacePerspectiveRenderable
- Overrides:
renderForeground
in classUEditBox
-
getCurrentScale
public float getCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
getCurrentScale
in interfaceScaleProvider
-
getCurrentScale
public float getCurrentScale(double mouseX, double mouseY) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classnet.minecraft.client.gui.components.EditBox
-