diff --git a/docs/concepts/registries.md b/docs/concepts/registries.md index ebf044619..d4d97e13a 100644 --- a/docs/concepts/registries.md +++ b/docs/concepts/registries.md @@ -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 entry : Registries.BLOCKS.entrySet()) { +for (Map.Entry entry : BuiltInRegistries.BLOCKS.entrySet()) { // ... } ```