Class WidgetTextFieldExtended
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
org.cyclops.cyclopscore.client.gui.component.input.WidgetTextFieldExtended
- 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:
WidgetArrowedListField
,WidgetNumberField
public class WidgetTextFieldExtended
extends net.minecraft.client.gui.components.EditBox
An extended text field.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, DEFAULT_TEXT_COLOR, FORWARDS
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionWidgetTextFieldExtended
(net.minecraft.client.gui.Font fontrenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component narrationMessage) WidgetTextFieldExtended
(net.minecraft.client.gui.Font fontrenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component narrationMessage, boolean background) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawBackground
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) int
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) void
renderWidget
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) void
setListener
(IInputListener listener) void
Methods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, charTyped, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getScreenX, getValue, getWordPosition, insertText, isBordered, isMouseOver, isVisible, keyPressed, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, nextFocusPath, onClick, playDownSound, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocused, setFormatter, setHighlightPos, setHint, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setVisible, tick, updateWidgetNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseDragged, mouseReleased, narrationPriority, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
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
getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.Renderable
render
-
Constructor Details
-
WidgetTextFieldExtended
public WidgetTextFieldExtended(net.minecraft.client.gui.Font fontrenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component narrationMessage, boolean background) -
WidgetTextFieldExtended
public WidgetTextFieldExtended(net.minecraft.client.gui.Font fontrenderer, int x, int y, int width, int height, net.minecraft.network.chat.Component narrationMessage)
-
-
Method Details
-
setListener
-
getInnerWidth
public int getInnerWidth()- Overrides:
getInnerWidth
in classnet.minecraft.client.gui.components.EditBox
-
drawBackground
protected void drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) -
setValue
- Overrides:
setValue
in classnet.minecraft.client.gui.components.EditBox
-
renderWidget
public void renderWidget(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) - Overrides:
renderWidget
in classnet.minecraft.client.gui.components.EditBox
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classnet.minecraft.client.gui.components.AbstractWidget
-