Package cz.jeme.advancium
Interface CustomAdvancementTab
- All Superinterfaces:
Keyed,net.kyori.adventure.key.Keyed
Represents a custom advancement tab.
Custom advancement tabs group advancements under a single category.
All display data for a tab are copied from its root advancement.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating and configuring instances ofCustomAdvancementTab. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.NamespacedKeyGets the background of the tab as aNamespacedKey.org.bukkit.plugin.Pluginplugin()Gets the plugin associated with this custom advancement tab.root()Gets the root advancement of this tab.static CustomAdvancementTab.Buildertab(org.bukkit.plugin.Plugin plugin) Creates a new builder for configuring and constructing aCustomAdvancementTab.
-
Method Details
-
tab
Creates a new builder for configuring and constructing aCustomAdvancementTab.- Parameters:
plugin- the plugin associated with this tab- Returns:
- a new builder instance
-
root
CustomAdvancement root()Gets the root advancement of this tab.The root advancement is considered the primary or starting point of this tab.
All display data for this tab are copied from this root advancement.
- Returns:
- the root
CustomAdvancement
-
background
org.bukkit.NamespacedKey background()Gets the background of the tab as aNamespacedKey.The background determines the texture or image displayed on this tab.
For example:
minecraft:textures/gui/advancements/backgrounds/stone.png- Returns:
- the
NamespacedKeyfor the tab's background texture
-
plugin
org.bukkit.plugin.Plugin plugin()Gets the plugin associated with this custom advancement tab.- Returns:
- the plugin associated with this tab
-