Package net.minecraft.client.gui.font
Class TextFieldHelper
java.lang.Object
net.minecraft.client.gui.font.TextFieldHelper
-
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
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_)
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
private void
setCursorToEnd(boolean p_95187_)
void
private 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_) -
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_) -
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
private void setCursorToStart(boolean p_95177_) -
setCursorToEnd
public void setCursorToEnd() -
setCursorToEnd
private 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()
-