类 EditBox
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明static final int
private boolean
private boolean
private static final String
private static final int
private static final int
private static final int
private int
static final int
private int
private long
private final Font
private BiFunction
<String, Integer, FormattedCharSequence> static final int
private int
private Component
private boolean
private int
private static final WidgetSprites
private String
private int
private int
private String
从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
boolean
charTyped
(char p_94122_, int p_94123_) protected MutableComponent
void
deleteChars
(int p_94181_) void
deleteCharsToPos
(int p_310763_) private void
deleteText
(int p_94218_) void
deleteWords
(int p_94177_) private int
getCursorPos
(int p_94221_) int
int
private int
int
getScreenX
(int p_94212_) getValue()
int
getWordPosition
(int p_94185_) private int
getWordPosition
(int p_94129_, int p_94130_) private int
getWordPosition
(int p_94141_, int p_94142_, boolean p_94143_) void
insertText
(String p_94165_) boolean
private boolean
boolean
boolean
keyPressed
(int p_94132_, int p_94133_, int p_94134_) void
moveCursor
(int p_94189_, boolean p_297286_) void
moveCursorTo
(int p_94193_, boolean p_300521_) void
moveCursorToEnd
(boolean p_297711_) void
moveCursorToStart
(boolean p_299543_) void
onClick
(double p_279417_, double p_279437_) private void
onValueChange
(String p_94175_) void
playDownSound
(SoundManager p_279245_) private void
renderHighlight
(GuiGraphics p_281400_, int p_265338_, int p_265693_, int p_265618_, int p_265584_) void
renderWidget
(GuiGraphics p_283252_, int p_281594_, int p_282100_, float p_283101_) private void
scrollTo
(int p_299591_) void
setBordered
(boolean p_94183_) void
setCanLoseFocus
(boolean p_94191_) void
setCursorPosition
(int p_94197_) void
setEditable
(boolean p_94187_) void
void
setFocused
(boolean p_265520_) void
setFormatter
(BiFunction<String, Integer, FormattedCharSequence> p_94150_) void
setHighlightPos
(int p_94209_) void
void
setMaxLength
(int p_94200_) void
setResponder
(Consumer<String> p_94152_) void
setSuggestion
(String p_94168_) void
setTextColor
(int p_94203_) void
setTextColorUneditable
(int p_94206_) void
void
setVisible
(boolean p_94195_) void
updateWidgetNarration
(NarrationElementOutput p_259237_) 从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, playButtonClickSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
字段详细资料
-
SPRITES
-
BACKWARDS
public static final int BACKWARDS- 另请参阅:
-
FORWARDS
public static final int FORWARDS- 另请参阅:
-
CURSOR_INSERT_WIDTH
private static final int CURSOR_INSERT_WIDTH- 另请参阅:
-
CURSOR_INSERT_COLOR
private static final int CURSOR_INSERT_COLOR- 另请参阅:
-
CURSOR_APPEND_CHARACTER
- 另请参阅:
-
DEFAULT_TEXT_COLOR
public static final int DEFAULT_TEXT_COLOR- 另请参阅:
-
CURSOR_BLINK_INTERVAL_MS
private static final int CURSOR_BLINK_INTERVAL_MS- 另请参阅:
-
font
-
value
-
maxLength
private int maxLength -
bordered
private boolean bordered -
canLoseFocus
private boolean canLoseFocus -
isEditable
private boolean isEditable -
displayPos
private int displayPos -
cursorPos
private int cursorPos -
highlightPos
private int highlightPos -
textColor
private int textColor -
textColorUneditable
private int textColorUneditable -
suggestion
-
responder
-
filter
-
formatter
-
hint
-
focusedTime
private long focusedTime
-
-
构造器详细资料
-
EditBox
-
EditBox
-
EditBox
-
-
方法详细资料
-
setResponder
-
setFormatter
-
createNarrationMessage
- 覆盖:
createNarrationMessage
在类中AbstractWidget
-
setValue
-
getValue
-
getHighlighted
-
setFilter
-
insertText
-
onValueChange
-
deleteText
private void deleteText(int p_94218_) -
deleteWords
public void deleteWords(int p_94177_) -
deleteChars
public void deleteChars(int p_94181_) -
deleteCharsToPos
public void deleteCharsToPos(int p_310763_) -
getWordPosition
public int getWordPosition(int p_94185_) -
getWordPosition
private int getWordPosition(int p_94129_, int p_94130_) -
getWordPosition
private int getWordPosition(int p_94141_, int p_94142_, boolean p_94143_) -
moveCursor
public void moveCursor(int p_94189_, boolean p_297286_) -
getCursorPos
private int getCursorPos(int p_94221_) -
moveCursorTo
public void moveCursorTo(int p_94193_, boolean p_300521_) -
setCursorPosition
public void setCursorPosition(int p_94197_) -
moveCursorToStart
public void moveCursorToStart(boolean p_299543_) -
moveCursorToEnd
public void moveCursorToEnd(boolean p_297711_) -
keyPressed
public boolean keyPressed(int p_94132_, int p_94133_, int p_94134_) -
canConsumeInput
public boolean canConsumeInput() -
charTyped
public boolean charTyped(char p_94122_, int p_94123_) -
onClick
public void onClick(double p_279417_, double p_279437_) - 覆盖:
onClick
在类中AbstractWidget
-
playDownSound
- 覆盖:
playDownSound
在类中AbstractWidget
-
renderWidget
- 指定者:
renderWidget
在类中AbstractWidget
-
renderHighlight
private void renderHighlight(GuiGraphics p_281400_, int p_265338_, int p_265693_, int p_265618_, int p_265584_) -
setMaxLength
public void setMaxLength(int p_94200_) -
getMaxLength
private int getMaxLength() -
getCursorPosition
public int getCursorPosition() -
isBordered
public boolean isBordered() -
setBordered
public void setBordered(boolean p_94183_) -
setTextColor
public void setTextColor(int p_94203_) -
setTextColorUneditable
public void setTextColorUneditable(int p_94206_) -
setFocused
public void setFocused(boolean p_265520_) - 指定者:
setFocused
在接口中GuiEventListener
- 覆盖:
setFocused
在类中AbstractWidget
-
isEditable
private boolean isEditable() -
setEditable
public void setEditable(boolean p_94187_) -
getInnerWidth
public int getInnerWidth() -
setHighlightPos
public void setHighlightPos(int p_94209_) -
scrollTo
private void scrollTo(int p_299591_) -
setCanLoseFocus
public void setCanLoseFocus(boolean p_94191_) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean p_94195_) -
setSuggestion
-
getScreenX
public int getScreenX(int p_94212_) -
updateWidgetNarration
- 指定者:
updateWidgetNarration
在类中AbstractWidget
-
setHint
-