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, mouseReleased
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static boolean chatOpen
protected net.minecraft.client.gui.widget.TextFieldWidget inputField
public void init()
init
in class TCGScreenBase
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class TCGScreenBase
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class TCGScreenBase
public void onClose()
onClose
in class TCGScreenBase
public 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.IGuiEventListener
charTyped
in interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped
in class TCGScreenBase
public 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.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class TCGScreenBase
public 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()