Skip to content

Commit

Permalink
fix two wrong mentions of Registries
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Feb 26, 2024
1 parent b1e1966 commit b5a78bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/concepts/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ As the last example shows, this is possible with any mod id, and thus a perfect
Finally, we can also iterate over all entries in a registry, either over the keys or over the entries (entries use the Java `Map.Entry` type):

```java
for (ResourceLocation id : Registries.BLOCKS.keySet()) {
for (ResourceLocation id : BuiltInRegistries.BLOCKS.keySet()) {
// ...
}
for (Map.Entry<ResourceLocation, Block> entry : Registries.BLOCKS.entrySet()) {
for (Map.Entry<ResourceLocation, Block> entry : BuiltInRegistries.BLOCKS.entrySet()) {
// ...
}
```
Expand Down

1 comment on commit b5a78bb

@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: b5a78bb1efce03065b86866ad2f8f3df22e1e0c7
Status: ✅ Deploy successful!
Preview URL: https://402ae602.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-48.neoforged-docs-previews.pages.dev

Please sign in to comment.