Sync new 1.19 registries as required. Closes #2205 (#2247)

* Sync new 1.19 registries as required. Closes #2205

* Comment fixes.
This commit is contained in:
modmuss50
2022-05-24 15:04:15 +01:00
committed by GitHub
parent 1899036145
commit 92cf9a3ec2

View File

@@ -120,6 +120,22 @@ public class FabricRegistryInit implements ModInitializer {
// Serialised by string, doesnt seem to be synced
RegistryAttributeHolder.get(Registry.STRUCTURE_POOL_ELEMENT);
// Uses a data tracker (and thus, raw IDs) to sync cat entities to the client
RegistryAttributeHolder.get(Registry.CAT_VARIANT)
.addAttribute(RegistryAttribute.SYNCED);
// Uses a data tracker (and thus, raw IDs) to sync frog entities to the client
RegistryAttributeHolder.get(Registry.FROG_VARIANT)
.addAttribute(RegistryAttribute.SYNCED);
// Uses a data tracker (and thus, raw IDs) to sync painting entities to the client
RegistryAttributeHolder.get(Registry.PAINTING_VARIANT)
.addAttribute(RegistryAttribute.SYNCED);
// Uses the raw ID when syncing the command tree to the client
RegistryAttributeHolder.get(Registry.COMMAND_ARGUMENT_TYPE)
.addAttribute(RegistryAttribute.SYNCED);
// Synced in OpenScreenS2CPacket
RegistryAttributeHolder.get(Registry.SCREEN_HANDLER)
.addAttribute(RegistryAttribute.SYNCED);