mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-26 08:32:54 +01:00
[ci skip] Fix incomplete example in javadocs for PostFlattenTagRegistrar (#12103)
This commit is contained in:
parent
db2aa1803d
commit
cf7c6c7483
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ import org.jspecify.annotations.NullMarked;
|
|||
* <pre>{@code
|
||||
* class YourBootstrapClass implements PluginBootstrap {
|
||||
*
|
||||
* public static final TypedKey<Enchantment> CUSTOM_POINTY_ENCHANT = EnchantmentKeys.create(Key.key("papermc:pointy"));
|
||||
*
|
||||
* @Override
|
||||
* public void bootstrap(BootstrapContext context) {
|
||||
* LifecycleEventManager<BootstrapContext> manager = context.getLifecycleManager();
|
||||
|
@ -30,7 +32,7 @@ import org.jspecify.annotations.NullMarked;
|
|||
* final PostFlattenTagRegistrar<Enchantment> registrar = event.registrar();
|
||||
* registrar.addToTag(
|
||||
* EnchantmentTagKeys.IN_ENCHANTING_TABLE,
|
||||
* Set.of(CUSTOM_ENCHANT)
|
||||
* Set.of(CUSTOM_POINTY_ENCHANT)
|
||||
* );
|
||||
* });
|
||||
* }
|
||||
|
|
Loading…
Add table
Reference in a new issue