Uses of Interface
net.neoforged.neoforge.registries.datamaps.DataMapValueMerger
-
Uses of DataMapValueMerger in net.neoforged.neoforge.registries.datamaps
Modifier and TypeFieldDescriptionprivate DataMapValueMerger
<R, T> AdvancedDataMapType.Builder.merger
private final DataMapValueMerger
<R, T> AdvancedDataMapType.merger
Modifier and TypeMethodDescriptionstatic <T,
R> DataMapValueMerger <R, T> DataMapValueMerger.defaultMerger()
Returns a default merger that overrides the old value with the new one.static <T,
R> DataMapValueMerger <R, List<T>> DataMapValueMerger.listMerger()
Returns a default merger that merges list data.static <K,
V, R> DataMapValueMerger <R, Map<K, V>> DataMapValueMerger.mapMerger()
Returns a default merger that merges map data.AdvancedDataMapType.merger()
Returns the merger that handles data map conflicts.static <T,
R> DataMapValueMerger <R, Set<T>> DataMapValueMerger.setMerger()
Returns a default merger that merges set data.Modifier and TypeMethodDescriptionAdvancedDataMapType.Builder.merger
(DataMapValueMerger<R, T> merger) Configures the merger that will handle conflicting values for the same registry object.ModifierConstructorDescriptionprivate
AdvancedDataMapType
(ResourceKey<Registry<R>> registryKey, ResourceLocation id, com.mojang.serialization.Codec<T> codec, @Nullable com.mojang.serialization.Codec<T> networkCodec, boolean mandatorySync, com.mojang.serialization.Codec<VR> remover, DataMapValueMerger<R, T> merger)