Interface DialogRegistryEntry.Builder
- All Superinterfaces:
DialogRegistryEntry
,RegistryBuilder<Dialog>
- Enclosing interface:
DialogRegistryEntry
@NonExtendable
public static interface DialogRegistryEntry.Builder
extends DialogRegistryEntry, RegistryBuilder<Dialog>
A mutable builder for the
DialogRegistryEntry
plugins may change in applicable registry events.
The following values are required for each builder:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.registry.data.dialog.DialogRegistryEntry
DialogRegistryEntry.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbase
(DialogBase dialogBase) Sets the base dialog for this entry.Provides a builder for dialogRegistryValueSet
which can be used insideDialogListType
.type
(DialogType dialogType) Sets the specialty dialog for this entry.Methods inherited from interface io.papermc.paper.registry.data.dialog.DialogRegistryEntry
base, type
-
Method Details
-
registryValueSet
@Contract(value="-> new", pure=true) RegistryValueSetBuilder<Dialog,DialogRegistryEntry.Builder> registryValueSet()Provides a builder for dialogRegistryValueSet
which can be used insideDialogListType
.Not a part of the registry entry.
- Returns:
- a new registry value set builder
-
base
@Contract(value="_ -> this", mutates="this") DialogRegistryEntry.Builder base(DialogBase dialogBase) Sets the base dialog for this entry.- Parameters:
dialogBase
- the base dialog- Returns:
- this builder instance
- See Also:
-
type
@Contract(value="_ -> this", mutates="this") DialogRegistryEntry.Builder type(DialogType dialogType) Sets the specialty dialog for this entry.- Parameters:
dialogType
- the specialty dialog- Returns:
- this builder instance
- See Also:
-