Class MultilineEditorWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
io.github.zhengzhengyiyi.gui.widget.MultilineEditorWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleancharTyped(char chr, int modifiers) getText()booleankeyPressed(int keyCode, int scanCode, int modifiers) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double amount) booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) protected voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) voidsetChangedListener(Consumer<String> changedListener) voidsetEditable(boolean editable) voidMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, getFocusedPath, keyReleased, mouseMovedMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Constructor Details
-
MultilineEditorWidget
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classClickableWidget
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double amount) -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) -
charTyped
public boolean charTyped(char chr, int modifiers) -
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget
-
getText
-
setText
-
setEditable
public void setEditable(boolean editable) -
setChangedListener
-