Package net.minecraft.client.gui.font
Class TextFieldHelper
java.lang.Object
net.minecraft.client.gui.font.TextFieldHelper
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_95144_) private int
clampToMsgLength
(int p_95196_) void
copy()
createClipboardGetter
(Minecraft p_95154_) createClipboardSetter
(Minecraft p_95183_) void
cut()
private String
deleteSelection
(String p_95185_) static String
getClipboardContents
(Minecraft p_95170_) int
private String
getSelected
(String p_95175_) int
void
insertText
(String p_95159_) private void
insertText
(String p_95161_, String p_95162_) boolean
boolean
keyPressed
(int p_95146_) void
moveBy
(int p_232576_, boolean p_232577_, TextFieldHelper.CursorStep p_232578_) void
moveByChars
(int p_169094_) void
moveByChars
(int p_95151_, boolean p_95152_) void
moveByWords
(int p_169096_) void
moveByWords
(int p_95167_, boolean p_95168_) void
paste()
void
removeCharsFromCursor
(int p_95190_) void
removeFromCursor
(int p_232573_, TextFieldHelper.CursorStep p_232574_) void
removeWordsFromCursor
(int p_232580_) private void
resetSelectionIfNeeded
(boolean p_95164_) void
static void
setClipboardContents
(Minecraft p_95156_, String p_95157_) void
setCursorPos
(int p_169099_) void
setCursorPos
(int p_95180_, boolean p_95181_) void
void
setCursorToEnd
(boolean p_95187_) void
void
setCursorToStart
(boolean p_95177_) void
setSelectionPos
(int p_169101_) void
setSelectionRange
(int p_95148_, int p_95149_)
-
Field Details
-
getMessageFn
-
setMessageFn
-
getClipboardFn
-
setClipboardFn
-
stringValidator
-
cursorPos
private int cursorPos -
selectionPos
private int selectionPos
-
-
Constructor Details
-
TextFieldHelper
-
-
Method Details
-
createClipboardGetter
-
getClipboardContents
-
createClipboardSetter
-
setClipboardContents
-
charTyped
public boolean charTyped(char p_95144_) -
keyPressed
public boolean keyPressed(int p_95146_) -
clampToMsgLength
private int clampToMsgLength(int p_95196_) -
insertText
-
insertText
-
resetSelectionIfNeeded
private void resetSelectionIfNeeded(boolean p_95164_) -
moveBy
-
moveByChars
public void moveByChars(int p_169094_) -
moveByChars
public void moveByChars(int p_95151_, boolean p_95152_) -
moveByWords
public void moveByWords(int p_169096_) -
moveByWords
public void moveByWords(int p_95167_, boolean p_95168_) -
removeFromCursor
-
removeWordsFromCursor
public void removeWordsFromCursor(int p_232580_) -
removeCharsFromCursor
public void removeCharsFromCursor(int p_95190_) -
cut
public void cut() -
paste
public void paste() -
copy
public void copy() -
selectAll
public void selectAll() -
getSelected
-
deleteSelection
-
setCursorToStart
public void setCursorToStart() -
setCursorToStart
public void setCursorToStart(boolean p_95177_) -
setCursorToEnd
public void setCursorToEnd() -
setCursorToEnd
public void setCursorToEnd(boolean p_95187_) -
getCursorPos
public int getCursorPos() -
setCursorPos
public void setCursorPos(int p_169099_) -
setCursorPos
public void setCursorPos(int p_95180_, boolean p_95181_) -
getSelectionPos
public int getSelectionPos() -
setSelectionPos
public void setSelectionPos(int p_169101_) -
setSelectionRange
public void setSelectionRange(int p_95148_, int p_95149_) -
isSelecting
public boolean isSelecting()
-