public class ScreenAPI extends WidgetGroup
| Modifier and Type | Field and Description |
|---|---|
protected ShapeWidget |
background |
protected boolean |
focused |
protected int |
guiScale |
protected ScreenAPI |
parentScreen |
protected TextAPI<?> |
title |
scaleX, scaleY, widgets| Constructor and Description |
|---|
ScreenAPI(ScreenAPI parentScreen,
TextAPI<?> title,
MinecraftWindow window,
int guiScale) |
ScreenAPI(TextAPI<?> title,
MinecraftWindow window,
int guiScale) |
| Modifier and Type | Method and Description |
|---|---|
protected ShapeWidget |
asBackground(ColorCache color) |
protected ShapeWidget |
asBackground(ResourceLocationAPI<?> texture) |
protected ShapeWidget |
asBackground(TextureWrapper texture) |
void |
close() |
void |
closeAll() |
ScreenAPI |
copy() |
float |
defaultBackgroundDarkness() |
void |
draw(RenderContext ctx,
double mouseX,
double mouseY) |
void |
draw(RenderContext ctx,
double mouseX,
double mouseY,
double z) |
void |
draw(RenderContext ctx,
Vector3 center,
double mouseX,
double mouseY) |
void |
drawHovered(RenderContext ctx,
Vector3 center,
double mouseX,
double mouseY) |
protected Plane |
fullScreenPlane() |
double |
getHeight() |
double |
getWidth() |
boolean |
onCloseRequested(boolean pressedEsc) |
void |
onScreenClosed() |
void |
onScreenOpened() |
boolean |
shouldPauseGame() |
addWidget, addWidgets, addWidgets, applyScale, canBackspace, canType, checkEachClickable, checkEachHoverable, checkEachScrollable, checkEachSelectable, checkEachTickable, checkEachTypeable, checkEachWidget, copyGroup, drawHoverable, drawSelectable, drawWidget, eachClickable, eachHoverable, eachScrollable, eachSelectable, eachTickable, eachTypeable, eachWidget, getElementsBottom, getElementsHeight, getElementsLeft, getElementsRight, getElementsTop, getElementsWidth, getHoveredElement, getHoverLines, getRelativeTop, getSelectedElement, hasNonBlankText, hasNonEmptyText, isActivelyTicking, isHovering, onBackspace, onCharTyped, onCopy, onCut, onKeyPressed, onLeftClick, onPaste, onResolutionUpdated, onRightClick, onSelectAll, onTick, playLeftClickSound, playRightClickSound, scrollDown, scrollUp, setWidgets, setWidgets, shouldDrawHovered, unapplyScalecanDraw, copyBasic, getBottom, getCenter, getCenter, getCenter, getLeft, getRight, getTop, getX, getY, isVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanCopy, canCut, canPaste, canSelectAllprotected final ScreenAPI parentScreen
protected final TextAPI<?> title
protected final int guiScale
protected ShapeWidget background
protected boolean focused
public ScreenAPI(TextAPI<?> title, MinecraftWindow window, int guiScale)
public ScreenAPI(ScreenAPI parentScreen, TextAPI<?> title, MinecraftWindow window, int guiScale)
protected ShapeWidget asBackground(ColorCache color)
protected ShapeWidget asBackground(ResourceLocationAPI<?> texture)
protected ShapeWidget asBackground(TextureWrapper texture)
public void close()
public void closeAll()
public ScreenAPI copy()
copy in class WidgetGrouppublic float defaultBackgroundDarkness()
public void draw(RenderContext ctx, double mouseX, double mouseY)
public void draw(RenderContext ctx, double mouseX, double mouseY, double z)
public void draw(RenderContext ctx, Vector3 center, double mouseX, double mouseY)
draw in class WidgetGrouppublic void drawHovered(RenderContext ctx, Vector3 center, double mouseX, double mouseY)
drawHovered in interface HoverabledrawHovered in class WidgetGroupprotected Plane fullScreenPlane()
public double getHeight()
public double getWidth()
public boolean onCloseRequested(boolean pressedEsc)
public void onScreenClosed()
onScreenClosed in class Widgetpublic void onScreenOpened()
onScreenOpened in class Widgetpublic boolean shouldPauseGame()