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, renderDirtBackground
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
protected 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.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class CameraScreen
public boolean charTyped(char typedChar, int keyCode)
public void init()
init
in class CameraScreen
public void removed()
removed
in class CameraScreen
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class net.minecraft.client.gui.screen.Screen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
mouseDragged
in interface net.minecraft.client.gui.IGuiEventListener
mouseDragged
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseDragged
in class CameraScreen
public boolean mouseScrolled(double mouseX, double mouseY, double delta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseScrolled
in class CameraScreen
public boolean mouseClicked(double mouseX, double mouseY, int button)
public boolean mouseReleased(double mouseX, double mouseY, int button)
public void mouseMoved(double mouseX, double mouseY)