@Environment(value=CLIENT) public class ChatScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
protected TextFieldWidget |
chatField |
private CommandSuggestor |
commandSuggestor |
private String |
field_2389 |
private int |
messageHistorySize |
private String |
originalChatText |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ChatScreen(String originalChatText) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init() |
protected void |
insertText(String text,
boolean override) |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
private void |
onChatFieldUpdate(String chatText) |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
setChatFromHistory(int int2) |
private void |
setText(String text) |
void |
tick() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, setInitialFocusmouseMovedprivate String field_2389
private int messageHistorySize
protected TextFieldWidget chatField
private String originalChatText
private CommandSuggestor commandSuggestor
public ChatScreen(String originalChatText)
public void resize(MinecraftClient client, int width, int height)
private void onChatFieldUpdate(String chatText)
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenpublic boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
protected void insertText(String text, boolean override)
insertText in class Screenpublic void setChatFromHistory(int int2)
public void render(int mouseX,
int mouseY,
float delta)
public boolean isPauseScreen()
isPauseScreen in class Screenprivate void setText(String text)