Skip to content

Commit

Permalink
Update docs/concepts/registries.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis C <xfacthd@gmx.de>
  • Loading branch information
IchHabeHunger54 and XFactHD committed Feb 22, 2024
1 parent 1ed292c commit e2fbc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static final Supplier<Block> EXAMPLE_BLOCK = BLOCKS.register(
);
```

Be aware that a few places explicitly require a `DeferredHolder` and will not just accept any `Supplier`. If you need a `DeferredHolder`, it is best to change the type of your `Supplier` back to `DeferredHolder`.
Be aware that a few places explicitly require a `Holder` or `DeferredHolder` and will not just accept any `Supplier`. If you need either of those two, it is best to change the type of your `Supplier` back to `Holder` or `DeferredHolder` as necessary.

Finally, since the entire system is a wrapper around registry events, we need to tell the `DeferredRegister` to attach itself to the registry events as needed:

Expand Down

1 comment on commit e2fbc31

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: e2fbc3190cf2792bdfad5bde46dd3d70450dc705
Status: ✅ Deploy successful!
Preview URL: https://9b890e2e.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-48.neoforged-docs-previews.pages.dev

Please sign in to comment.