public class TCGScreenChattableBase extends TCGScreenBase
| Modifier and Type | Field and Description |
|---|---|
static boolean |
chatOpen
Whether the chatbox is open.
|
protected net.minecraft.client.gui.widget.TextFieldWidget |
inputField
Chat entry field
|
textFieldList, visible| Constructor and Description |
|---|
TCGScreenChattableBase() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateChatboxHeight(double p_146243_0_)
Calculates the height of the chatbox..
|
static int |
calculateChatboxWidth(double p_146233_0_)
Calculates the width of the chatbox.
|
boolean |
charTyped(char key,
int keyCode) |
void |
chatClosed()
Closes the chatbox.
|
void |
chatOpened(java.lang.String start)
Opens the chatbox.
|
void |
completePlayerName()
Auto-completes player name.
|
int |
getChatHeight()
Calculates the height of the chatbox.
|
double |
getChatScale()
Returns the chatscale from mc.gameSettings.chatScale.
|
int |
getChatWidth()
Calculates the width of the chatbox.
|
int |
getLineCount()
Calculates the number of lines in the chatbox.
|
void |
getSentHistory(int par1)
Input is relative and is applied directly to the sentHistoryCursor so -1 is the previous message and 1 is the
next message from the current cursor position.
|
void |
init() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
void |
onClose() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
tick() |
drawEffectTooltip, drawHoveringText, drawRectWithBorder, getScaledHeight, getScaledWidth, isLeftMousePressed, isRightMousePressed, keyPressed, mouseReleasedaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static boolean chatOpen
protected net.minecraft.client.gui.widget.TextFieldWidget inputField
public void init()
init in class TCGScreenBasepublic void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class TCGScreenBasepublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class TCGScreenBasepublic void onClose()
onClose in class TCGScreenBasepublic void chatOpened(java.lang.String start)
start - The initial text in the chatbox.public void chatClosed()
public boolean charTyped(char key,
int keyCode)
charTyped in interface net.minecraft.client.gui.IGuiEventListenercharTyped in interface net.minecraft.client.gui.INestedGuiEventHandlercharTyped in class TCGScreenBasepublic void completePlayerName()
public void getSentHistory(int par1)
par1 - The location of the text history to get.public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class TCGScreenBasepublic int getChatWidth()
public int getChatHeight()
public double getChatScale()
public static int calculateChatboxWidth(double p_146233_0_)
p_146233_0_ - The current settings for chatbox width.public static int calculateChatboxHeight(double p_146243_0_)
p_146243_0_ - The current settings for chatbox height.public int getLineCount()