public class ChattableCameraScreen extends CameraScreen
| Modifier and Type | Field and Description |
|---|---|
protected ChatExtensionScreen |
chat
The chat component in the GUI.
|
allowUserInput, mouseDown| Constructor and Description |
|---|
ChattableCameraScreen()
Initializes chat with the default location.
|
ChattableCameraScreen(CameraEntity cam,
int posX,
int posY,
int width)
Initializes chat at a specified location and width.
|
ChattableCameraScreen(int posX)
Initializes chat with a specified x coordinate.
|
ChattableCameraScreen(int posX,
int posY)
Initializes chat at a specified location.
|
ChattableCameraScreen(int posX,
int posY,
int width)
Initializes chat at a specified location and width.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
charTyped(char typedChar,
int keyCode) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY) |
void |
mouseMoved(double mouseX,
double mouseY) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
removed() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
void |
tick() |
getCamera, isPauseScreen, renderBackground, renderDirtBackgroundaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderComponentHoverEffect, renderComponentTooltip, 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, vLineprotected ChatExtensionScreen chat
public ChattableCameraScreen()
public ChattableCameraScreen(int posX)
posX - The x coordinate of the chatbox.public ChattableCameraScreen(int posX,
int posY)
posX - The x coordinate of the chatbox.posY - The y coordinate of the chatbox.public ChattableCameraScreen(int posX,
int posY,
int width)
posX - The x coordinate of the chatbox.posY - The y coordinate of the chatbox.width - The width of the chatbox.public ChattableCameraScreen(CameraEntity cam, int posX, int posY, int width)
cam - The player's camera.posX - The x coordinate of the chatbox.posY - The y coordinate of the chatbox.width - The width of the chatbox.public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class CameraScreenpublic boolean charTyped(char typedChar,
int keyCode)
public void init()
init in class CameraScreenpublic void removed()
removed in class CameraScreenpublic void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.Screenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic boolean mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlermouseDragged in class CameraScreenpublic boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlermouseScrolled in class CameraScreenpublic boolean mouseClicked(double mouseX,
double mouseY,
int button)
public boolean mouseReleased(double mouseX,
double mouseY,
int button)
public void mouseMoved(double mouseX,
double mouseY)