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,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
-
Nested Class Summary
Nested 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
FieldsFields inherited from class info.u_team.u_team_core.gui.elements.UEditBox
backgroundColor, backgroundFrameColor, BLACK, cursorColor, DARK_GRAY, DARKER_GRAY, disabledTextColor, GRAY, hintTextColor, LIGHT_GRAY, LIGHTER_GRAY, suggestionTextColor, textColor, unfocusedBackgroundFrameColor, WHITEFields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, bordered, canLoseFocus, cursorPos, DEFAULT_TEXT_COLOR, displayPos, font, formatter, FORWARDS, frame, highlightPos, hint, isEditable, maxLength, suggestion, 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
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) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatgetCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) floatgetScale()booleanmouseClicked(double mouseX, double mouseY, int button) voidrenderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidsetHighlightPos(int position) voidsetScale(float scale) Methods inherited from class info.u_team.u_team_core.gui.elements.UEditBox
getBackgroundColor, getBackgroundFrameColor, getCurrentBackgroundColor, getCurrentBackgroundFrameColor, getCurrentCursorColor, getCurrentHintTextColor, getCurrentSuggestionTextColor, getCurrentTextColor, getCursorColor, getDisabledTextColor, getHintTextColor, getSuggestionTextColor, getTextColor, getUnfocusedBackgroundFrameColor, renderBackground, renderTick, renderWidget, setBackgroundColor, setBackgroundFrameColor, setCursorColor, setDisabledTextColor, setHintTextColor, setPreviousText, setSuggestionTextColor, setTextColor, setTextColor, setTextColorUneditable, setUnfocusedBackgroundFrameColorMethods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getValue, getWordPosition, insertText, isMouseOver, isVisible, keyPressed, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, nextFocusPath, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocused, setFormatter, setHint, setMaxLength, setResponder, setSuggestion, setValue, setVisible, tick, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clicked, createTooltipPositioner, defaultButtonNarrationText, getHeight, getMessage, getRectangle, getTabOrderGroup, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playDownSound, 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
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
-
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)
-
-
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 partialTick) - Specified by:
renderForegroundin interfacePerspectiveRenderable- Overrides:
renderForegroundin classUEditBox
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classnet.minecraft.client.gui.components.EditBox
-
setHighlightPos
public void setHighlightPos(int position) - Overrides:
setHighlightPosin classnet.minecraft.client.gui.components.EditBox
-
getCurrentScale
public float getCurrentScale(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
getCurrentScalein interfaceScaleProvider
-
getCurrentScale
public float getCurrentScale()
-