Class PopupScreen.Builder
java.lang.Object
net.minecraft.client.gui.components.PopupScreen.Builder
- Enclosing class:
PopupScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Screenprivate final List<PopupScreen.ButtonOption> private @Nullable Identifierprivate @Nullable Runnableprivate final Componentprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddButton(Component message, Consumer<PopupScreen> action) addMessage(Component message) build()setImage(Identifier image) setWidth(int width)
-
Field Details
-
backgroundScreen
-
title
-
messages
-
width
private int width -
image
-
buttons
-
onClose
-
-
Constructor Details
-
Builder
-
-
Method Details
-
setWidth
-
setImage
-
addMessage
-
addButton
-
onClose
-
build
-