Skip to content

How can I construct a registry? #1589

Discussion options

You must be logged in to vote
private static final Identifier REGISTRY_ID = new Identifier("modid", "example");
private static final RegistryKey<Registry<T>> REGISTRY_KEY = RegistryKey.ofRegistry(REGISTRY_ID);
public static final Registry<T> REGISTRY = new SimpleRegistry<>(REGISTRY_KEY, Lifecycle.stable());

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OliverU72104
Comment options

Answer selected by haykam821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants