Skip to content

Commit

Permalink
update sync disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Feb 21, 2024
1 parent ff5d5b1 commit 965be16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Let's start by creating the [registry key][resourcekey] and the registry itself:
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 to enable integer id syncing, for networking.
// Never use integer ids yourself, even if this is enabled! This is purely intended to reduce bandwidth.
// These should only be used in networking contexts, for example in packets or purely networking-related NBT data.
.sync(true)
// The default key. Similar to minecraft:air for blocks. This is optional.
.defaultKey(new ResourceLocation("yourmodid", "empty"))
Expand Down

1 comment on commit 965be16

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

Please sign in to comment.