Package net.minecraft.core
Class RegistrySynchronization
java.lang.Object
net.minecraft.core.RegistrySynchronization
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RegistryAccess>
private static final Map<ResourceKey<? extends Registry<?>>,
RegistrySynchronization.NetworkedRegistryData<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <K extends ResourceKey<? extends Registry<?>>,
V extends Registry<?>>
com.mojang.serialization.Codec<RegistryAccess>captureMap
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_249934_) private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
getNetworkCodec
(ResourceKey<? extends Registry<E>> p_252190_) private static <E> com.mojang.serialization.Codec<RegistryAccess>
static Stream<RegistryAccess.RegistryEntry<?>>
networkedRegistries
(LayeredRegistryAccess<RegistryLayer> p_259290_) static Stream<RegistryAccess.RegistryEntry<?>>
networkSafeRegistries
(LayeredRegistryAccess<RegistryLayer> p_249066_) private static Stream<RegistryAccess.RegistryEntry<?>>
ownedNetworkableRegistries
(RegistryAccess p_251842_) private static <E> void
put
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistrySynchronization.NetworkedRegistryData<?>> p_251643_, ResourceKey<? extends Registry<E>> p_249195_, com.mojang.serialization.Codec<E> p_249212_)
-
Field Details
-
NETWORKABLE_REGISTRIES
private static final Map<ResourceKey<? extends Registry<?>>,RegistrySynchronization.NetworkedRegistryData<?>> NETWORKABLE_REGISTRIES -
NETWORK_CODEC
-
-
Constructor Details
-
RegistrySynchronization
public RegistrySynchronization()
-
-
Method Details
-
put
private static <E> void put(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistrySynchronization.NetworkedRegistryData<?>> p_251643_, ResourceKey<? extends Registry<E>> p_249195_, com.mojang.serialization.Codec<E> p_249212_) -
ownedNetworkableRegistries
private static Stream<RegistryAccess.RegistryEntry<?>> ownedNetworkableRegistries(RegistryAccess p_251842_) -
getNetworkCodec
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getNetworkCodec(ResourceKey<? extends Registry<E>> p_252190_) -
makeNetworkCodec
-
captureMap
private static <K extends ResourceKey<? extends Registry<?>>,V extends Registry<?>> com.mojang.serialization.Codec<RegistryAccess> captureMap(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_249934_) -
networkedRegistries
public static Stream<RegistryAccess.RegistryEntry<?>> networkedRegistries(LayeredRegistryAccess<RegistryLayer> p_259290_) -
networkSafeRegistries
public static Stream<RegistryAccess.RegistryEntry<?>> networkSafeRegistries(LayeredRegistryAccess<RegistryLayer> p_249066_)
-