@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, width
GUI_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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private 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 Screen
public 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