Package io.papermc.paper.dialog
Interface Dialog
- All Superinterfaces:
DialogLike
,Keyed
,Keyed
Represents a dialog. Can be created during normal server operation via
create(Consumer)
.
Can also be created during bootstrap via RegistryEvents.DIALOG
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Dialog
create
(Consumer<RegistryBuilderFactory<Dialog, ? extends DialogRegistryEntry.Builder>> value) Creates a new dialog using the provided builder.getKey()
Deprecated, for removal: This API element is subject to removal in a future version.default Key
key()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
CUSTOM_OPTIONS
-
QUICK_ACTIONS
-
SERVER_LINKS
-
-
Method Details
-
create
@Experimental static Dialog create(Consumer<RegistryBuilderFactory<Dialog, ? extends DialogRegistryEntry.Builder>> value) Creates a new dialog using the provided builder.- Parameters:
value
- the builder to use for creating the dialog- Returns:
- a new dialog instance
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.DIALOG
. Dialogs can exist without a key.Description copied from interface:Keyed
Return the namespaced identifier for this object. -
key
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.DIALOG
. Dialogs can exist without a key.Description copied from interface:Keyed
Returns the unique identifier for this object.
-
Registry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.DIALOG
.