Uses of Record Class
net.neoforged.neoforge.common.conditions.WithConditions
Package
Description
-
Uses of WithConditions in net.minecraft.advancements
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Optional<WithConditions<Advancement>>> Advancement.CONDITIONAL_CODEC
-
Uses of WithConditions in net.minecraft.world.item.crafting
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Optional<WithConditions<Recipe<?>>>> Recipe.CONDITIONAL_CODEC
-
Uses of WithConditions in net.neoforged.neoforge.common.conditions
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec
<Optional<WithConditions<T>>> ConditionalOps.createConditionalCodecWithConditions
(com.mojang.serialization.Codec<T> ownerCodec) static <T> com.mojang.serialization.Codec
<Optional<WithConditions<T>>> ConditionalOps.createConditionalCodecWithConditions
(com.mojang.serialization.Codec<T> ownerCodec, String conditionalsKey) Creates a conditional codec.<T> com.mojang.serialization.DataResult
<com.mojang.datafixers.util.Pair<Optional<WithConditions<A>>, T>> ConditionalOps.ConditionalDecoder.decode
(com.mojang.serialization.DynamicOps<T> ops, T input) Modifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<T> ConditionalOps.ConditionalEncoder.encode
(Optional<WithConditions<A>> input, com.mojang.serialization.DynamicOps<T> ops, T prefix) static <V,
T> Optional <T> ICondition.getWithWithConditionsCodec
(com.mojang.serialization.Codec<Optional<WithConditions<T>>> codec, com.mojang.serialization.DynamicOps<V> ops, V elements) -
Uses of WithConditions in net.neoforged.neoforge.common.data
Modifier and TypeFieldDescriptionprotected final Map
<ResourceLocation, WithConditions<T>> JsonCodecProvider.conditions
private final List
<WithConditions<OverlayMetadataSection.OverlayEntry>> GeneratingOverlayMetadataSection.overlays
The field for theoverlays
record component.private final Map
<String, WithConditions<IGlobalLootModifier>> GlobalLootModifierProvider.toSerialize
private final Map
<com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapProvider.Builder.values
Modifier and TypeMethodDescriptionGeneratingOverlayMetadataSection.overlays()
Returns the value of theoverlays
record component.Modifier and TypeMethodDescriptionprivate void
JsonCodecProvider.process
(ResourceLocation id, WithConditions<T> withConditions) ModifierConstructorDescriptionGeneratingOverlayMetadataSection
(List<WithConditions<OverlayMetadataSection.OverlayEntry>> overlays) Creates an instance of aGeneratingOverlayMetadataSection
record class. -
Uses of WithConditions in net.neoforged.neoforge.common.loot
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Optional<WithConditions<IGlobalLootModifier>>> IGlobalLootModifier.CONDITIONAL_CODEC
-
Uses of WithConditions in net.neoforged.neoforge.oldtest.conditions
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec
<Optional<WithConditions<ConditionalCodecTest.Record.SimpleRecord>>> ConditionalCodecTest.Record.SimpleRecord.CONDITIONS_CODEC
private static final com.mojang.serialization.Codec
<Optional<WithConditions<Integer>>> ConditionalCodecTest.Primitive.CONDITIONS_INT
-
Uses of WithConditions in net.neoforged.neoforge.registries.datamaps
Modifier and TypeFieldDescriptionprivate final Map
<com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapFile.values
The field for thevalues
record component.Modifier and TypeMethodDescriptionMap
<com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapFile.values()
Returns the value of thevalues
record component.ModifierConstructorDescriptionDataMapFile
(boolean replace, Map<com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> values, List<DataMapEntry.Removal<T, R>> removals) Creates an instance of aDataMapFile
record class.