diff --git a/content/news/20.2registry-rework.md b/content/news/20.2registry-rework.md index 2d4ccff..49d4c37 100644 --- a/content/news/20.2registry-rework.md +++ b/content/news/20.2registry-rework.md @@ -116,7 +116,7 @@ Here is a registration example, using the helper methods provided by `DeferredRe public static final ResourceKey> CUSTOM_REGISTRY_KEY = ResourceKey.createRegistryKey(new ResourceLocation("mymod:custom")); // Create the DeferredRegister with our registry key. -private static final DeferredRegister CUSTOMS = +private static final DeferredRegister CUSTOMS = DeferredRegister.create(CUSTOM_REGISTRY_KEY, "mymod"); // We can register objects as usual... @@ -136,7 +136,7 @@ Another way is to directly create the registry with a `RegistryBuilder`, and man public static final ResourceKey> CUSTOM_REGISTRY_KEY = ResourceKey.createRegistryKey(new ResourceLocation("mymod:custom")); // Create the registry directly... -public static final Register CUSTOM_REGISTRY = new RegistryBuilder<>(CUSTOM_REGISTRY_KEY) +public static final Registry CUSTOM_REGISTRY = new RegistryBuilder<>(CUSTOM_REGISTRY_KEY) // configure the builder if you want, for example with .sync(true) // then build the registry .build();