@Environment(value=CLIENT) public class DialogScreen extends Screen
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogScreen.ChoiceButton |
| Modifier and Type | Field and Description |
|---|---|
private int |
buttonWidth |
private ImmutableList<DialogScreen.ChoiceButton> |
choiceButtons |
private class_5489 |
lines |
private int |
linesY |
private StringVisitable |
message |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Modifier | Constructor and Description |
|---|---|
protected |
DialogScreen(Text title,
List<StringVisitable> list,
ImmutableList<DialogScreen.ChoiceButton> choiceButtons) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNarrationMessage() |
void |
init(MinecraftClient client,
int width,
int height) |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.
|
addButton, addChild, children, filesDragged, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, tick, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate final StringVisitable message
private final ImmutableList<DialogScreen.ChoiceButton> choiceButtons
private class_5489 lines
private int linesY
private int buttonWidth
protected DialogScreen(Text title, List<StringVisitable> list, ImmutableList<DialogScreen.ChoiceButton> choiceButtons)
public String getNarrationMessage()
getNarrationMessage in class Screenpublic void init(MinecraftClient client, int width, int height)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screen