Package net.minecraft.tags
Class TagNetworkSerialization
java.lang.Object
net.minecraft.tags.TagNetworkSerialization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
deserializeTagsFromNetwork
(ResourceKey<? extends Registry<T>> p_203953_, Registry<T> p_203954_, TagNetworkSerialization.NetworkPayload p_203955_, TagNetworkSerialization.TagOutput<T> p_203956_) static Map<ResourceKey<? extends Registry<?>>,
TagNetworkSerialization.NetworkPayload> serializeTagsToNetwork
(LayeredRegistryAccess<RegistryLayer> p_251774_) private static <T> TagNetworkSerialization.NetworkPayload
serializeToNetwork
(Registry<T> p_203943_)
-
Constructor Details
-
TagNetworkSerialization
public TagNetworkSerialization()
-
-
Method Details
-
serializeTagsToNetwork
public static Map<ResourceKey<? extends Registry<?>>,TagNetworkSerialization.NetworkPayload> serializeTagsToNetwork(LayeredRegistryAccess<RegistryLayer> p_251774_) -
serializeToNetwork
-
deserializeTagsFromNetwork
public static <T> void deserializeTagsFromNetwork(ResourceKey<? extends Registry<T>> p_203953_, Registry<T> p_203954_, TagNetworkSerialization.NetworkPayload p_203955_, TagNetworkSerialization.TagOutput<T> p_203956_)
-