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