Skip to content

Commit

Permalink
remove mention of registry int id syncing (it is discouraged)
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Feb 21, 2024
1 parent a4971bd commit 9950d51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/concepts/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ Let's start by creating the [registry key][resourcekey] and the registry itself:
// Of course, all mentions of spells can and should be replaced with whatever your registry actually is.
public static final ResourceKey<Registry<Spell>> SPELL_REGISTRY_KEY = ResourceKey.createRegistryKey(new ResourceLocation("yourmodid", "spells"));
public static final Registry<YourRegistryContents> SPELL_REGISTRY = new RegistryBuilder<>(SPELL_REGISTRY_KEY)
// If you want the registry to sync its values.
.sync(true)
// The default key. Similar to minecraft:air for blocks. This is optional.
.defaultKey(new ResourceLocation("yourmodid", "empty"))
// Effectively limits the max count. Generally discouraged, but may make sense in settings such as networking.
Expand Down

1 comment on commit 9950d51

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

Please sign in to comment.