Package net.minecraft.client.gui.fonts
Class TextInputUtil
java.lang.Object
net.minecraft.client.gui.fonts.TextInputUtil
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_216894_1_) private int
clampToMsgLength
(int p_238589_1_) void
copy()
createClipboardGetter
(Minecraft p_238570_0_) createClipboardSetter
(Minecraft p_238582_0_) void
cut()
private String
deleteSelection
(String p_238583_1_) static String
getClipboardContents
(Minecraft p_238576_0_) int
private String
getSelected
(String p_238578_1_) int
void
insertText
(String p_216892_1_) private void
insertText
(String p_238572_1_, String p_238572_2_) boolean
boolean
keyPressed
(int p_216897_1_) void
moveByChars
(int p_238569_1_, boolean p_238569_2_) void
moveByWords
(int p_238575_1_, boolean p_238575_2_) void
paste()
void
removeCharsFromCursor
(int p_238586_1_) private void
resetSelectionIfNeeded
(boolean p_238573_1_) void
static void
setClipboardContents
(Minecraft p_238571_0_, String p_238571_1_) void
setCursorPos
(int p_238581_1_, boolean p_238581_2_) void
private void
setCursorToEnd
(boolean p_238584_1_) private void
setCursorToStart
(boolean p_238579_1_) void
setSelectionRange
(int p_238568_1_, int p_238568_2_)
-
Field Details
-
getMessageFn
-
setMessageFn
-
getClipboardFn
-
setClipboardFn
-
stringValidator
-
cursorPos
private int cursorPos -
selectionPos
private int selectionPos
-
-
Constructor Details
-
TextInputUtil
-
-
Method Details
-
createClipboardGetter
-
getClipboardContents
-
createClipboardSetter
-
setClipboardContents
-
charTyped
public boolean charTyped(char p_216894_1_) -
keyPressed
public boolean keyPressed(int p_216897_1_) -
clampToMsgLength
private int clampToMsgLength(int p_238589_1_) -
insertText
-
insertText
-
resetSelectionIfNeeded
private void resetSelectionIfNeeded(boolean p_238573_1_) -
moveByChars
public void moveByChars(int p_238569_1_, boolean p_238569_2_) -
moveByWords
public void moveByWords(int p_238575_1_, boolean p_238575_2_) -
removeCharsFromCursor
public void removeCharsFromCursor(int p_238586_1_) -
cut
public void cut() -
paste
public void paste() -
copy
public void copy() -
selectAll
public void selectAll() -
getSelected
-
deleteSelection
-
setCursorToStart
private void setCursorToStart(boolean p_238579_1_) -
setCursorToEnd
public void setCursorToEnd() -
setCursorToEnd
private void setCursorToEnd(boolean p_238584_1_) -
getCursorPos
public int getCursorPos() -
setCursorPos
public void setCursorPos(int p_238581_1_, boolean p_238581_2_) -
getSelectionPos
public int getSelectionPos() -
setSelectionRange
public void setSelectionRange(int p_238568_1_, int p_238568_2_) -
isSelecting
public boolean isSelecting()
-