public class TextScreenAddon extends BasicScreenAddon
| Constructor and Description |
|---|
TextScreenAddon(java.lang.String text,
int posX,
int posY,
boolean shadow) |
TextScreenAddon(java.lang.String text,
int posX,
int posY,
boolean shadow,
int color) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
Draws the component in the background layer
|
void |
drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
Draws the component in the foreground layer
|
java.lang.String |
getText() |
int |
getXSize() |
int |
getYSize() |
getPosX, getPosY, isInside, setPosX, setPosYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTooltipLines, init, isBackground, keyPressedpublic TextScreenAddon(java.lang.String text,
int posX,
int posY,
boolean shadow,
int color)
public TextScreenAddon(java.lang.String text,
int posX,
int posY,
boolean shadow)
public int getXSize()
getXSize in class BasicScreenAddonpublic int getYSize()
getYSize in class BasicScreenAddonpublic void drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse YpartialTicks - Partial tickspublic void drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse Ypublic java.lang.String getText()