public class CottonClientScreen extends net.minecraft.client.gui.screen.Screen implements CottonScreenImpl
| Modifier and Type | Field and Description |
|---|---|
protected GuiDescription |
description |
protected @Nullable WWidget |
lastResponder |
protected int |
left |
protected int |
titleX
The X coordinate of the screen title.
|
protected int |
titleY
The Y coordinate of the screen title.
|
protected int |
top |
| Constructor and Description |
|---|
CottonClientScreen(GuiDescription description) |
CottonClientScreen(net.minecraft.text.Text title,
GuiDescription description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeFocus(boolean lookForwards) |
boolean |
charTyped(char ch,
int keyCode) |
GuiDescription |
getDescription() |
@Nullable WWidget |
getLastResponder() |
void |
init() |
boolean |
keyPressed(int ch,
int keyCode,
int modifiers) |
boolean |
keyReleased(int ch,
int keyCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double deltaX,
double deltaY) |
void |
mouseMoved(double mouseX,
double mouseY) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
removed() |
void |
render(net.minecraft.client.util.math.MatrixStack matrices,
int mouseX,
int mouseY,
float partialTicks) |
void |
renderTextHover(net.minecraft.client.util.math.MatrixStack matrices,
@Nullable net.minecraft.text.Style textStyle,
int x,
int y) |
protected void |
reposition(int screenWidth,
int screenHeight)
Repositions the root panel.
|
void |
setLastResponder(@Nullable WWidget lastResponder) |
void |
tick() |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetprotected GuiDescription description
protected int left
protected int top
protected int titleX
protected int titleY
@Nullable protected @Nullable WWidget lastResponder
public CottonClientScreen(GuiDescription description)
public CottonClientScreen(net.minecraft.text.Text title,
GuiDescription description)
public GuiDescription getDescription()
public void init()
init in class net.minecraft.client.gui.screen.Screenpublic void removed()
removed in class net.minecraft.client.gui.screen.Screen@Nullable public @Nullable WWidget getLastResponder()
getLastResponder in interface CottonScreenImplpublic void setLastResponder(@Nullable
@Nullable WWidget lastResponder)
setLastResponder in interface CottonScreenImplprotected void reposition(int screenWidth,
int screenHeight)
screenWidth - the width of the screenscreenHeight - the height of the screenpublic void render(net.minecraft.client.util.math.MatrixStack matrices,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.Drawablerender in class net.minecraft.client.gui.screen.Screenpublic void tick()
tick in interface net.minecraft.client.gui.screen.TickableElementtick in class net.minecraft.client.gui.screen.Screenpublic boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
mouseClicked in interface net.minecraft.client.gui.ElementmouseClicked in interface net.minecraft.client.gui.ParentElementpublic boolean mouseReleased(double mouseX,
double mouseY,
int mouseButton)
mouseReleased in interface net.minecraft.client.gui.ElementmouseReleased in interface net.minecraft.client.gui.ParentElementpublic boolean mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double deltaX,
double deltaY)
mouseDragged in interface net.minecraft.client.gui.ElementmouseDragged in interface net.minecraft.client.gui.ParentElementpublic boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
mouseScrolled in interface net.minecraft.client.gui.ElementmouseScrolled in interface net.minecraft.client.gui.ParentElementpublic void mouseMoved(double mouseX,
double mouseY)
mouseMoved in interface net.minecraft.client.gui.Elementpublic boolean charTyped(char ch,
int keyCode)
charTyped in interface net.minecraft.client.gui.ElementcharTyped in interface net.minecraft.client.gui.ParentElementpublic boolean keyPressed(int ch,
int keyCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.ElementkeyPressed in interface net.minecraft.client.gui.ParentElementkeyPressed in class net.minecraft.client.gui.screen.Screenpublic boolean keyReleased(int ch,
int keyCode,
int modifiers)
keyReleased in interface net.minecraft.client.gui.ElementkeyReleased in interface net.minecraft.client.gui.ParentElementpublic void renderTextHover(net.minecraft.client.util.math.MatrixStack matrices,
@Nullable
@Nullable net.minecraft.text.Style textStyle,
int x,
int y)
renderTextHover in interface CottonScreenImplpublic boolean changeFocus(boolean lookForwards)
changeFocus in interface net.minecraft.client.gui.ElementchangeFocus in interface net.minecraft.client.gui.ParentElement