Skip to content

Commit

Permalink
Update docs/paper/dev/api/registries.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Matouš Kučera <[email protected]>
  • Loading branch information
lynxplay and zlataovce authored Jun 17, 2024
1 parent f83727d commit 89346f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/paper/dev/api/registries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class TestPluginBootstrap implements PluginBootstrap {
### Modifying existing entries

Modification of existing entries is useful for plugins that aim to change the way Vanilla entries
behave. For this the <Javadoc name={"io.papermc.paper.registry.event.RegistryEventProvider#entryAdd"}>`entryAdd` lifecycle event</Javadoc>.
behave. For this, use the <Javadoc name={"io.papermc.paper.registry.event.RegistryEventProvider#entryAdd()"}>`entryAdd` lifecycle event</Javadoc>.
The event is called for <u>*any*</u> entry added to a registry, however the API provides an easy way to target a specific entry for modification.
The following example shows how to increase the maximum level of the sharpness enchantment.

Expand Down

0 comments on commit 89346f1

Please sign in to comment.