Uses of Interface
net.neoforged.neoforge.common.conditions.ICondition
Package
Description
-
Uses of ICondition in net.minecraft.data.recipes
Modifier and TypeMethodDescriptionprotected CompletableFuture
<?> RecipeProvider.buildAdvancement
(CachedOutput p_253674_, HolderLookup.Provider p_323646_, AdvancementHolder p_301116_, ICondition... conditions) -
Uses of ICondition in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionstatic final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<AndCondition>> NeoForgeMod.AND_CONDITION
private static final DeferredRegister
<com.mojang.serialization.MapCodec<? extends ICondition>> NeoForgeMod.CONDITION_CODECS
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<FalseCondition>> NeoForgeMod.FALSE_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<ItemExistsCondition>> NeoForgeMod.ITEM_EXISTS_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<ModLoadedCondition>> NeoForgeMod.MOD_LOADED_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<NotCondition>> NeoForgeMod.NOT_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<OrCondition>> NeoForgeMod.OR_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<TagEmptyCondition>> NeoForgeMod.TAG_EMPTY_CONDITION
static final DeferredHolder
<com.mojang.serialization.MapCodec<? extends ICondition>, com.mojang.serialization.MapCodec<TrueCondition>> NeoForgeMod.TRUE_CONDITION
-
Uses of ICondition in net.neoforged.neoforge.common.conditions
Modifier and TypeClassDescriptionfinal record
final class
class
final record
final record
final record
final record
final class
Modifier and TypeFieldDescriptionprivate final ICondition
NotCondition.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionprivate final List
<ICondition> AndCondition.children
The field for thechildren
record component.static final com.mojang.serialization.Codec
<ICondition> ICondition.CODEC
private final List
<ICondition> WithConditions.Builder.conditions
private final List
<ICondition> WithConditions.conditions
The field for theconditions
record component.final com.mojang.serialization.Codec
<List<ICondition>> ConditionalOps.ConditionalDecoder.conditionsCodec
final com.mojang.serialization.Codec
<List<ICondition>> ConditionalOps.ConditionalEncoder.conditionsCodec
static final com.mojang.serialization.Codec
<List<ICondition>> ICondition.LIST_CODEC
private final List
<ICondition> OrCondition.values
The field for thevalues
record component.Modifier and TypeMethodDescriptiondefault ICondition
IConditionBuilder.and
(ICondition... values) default ICondition
IConditionBuilder.FALSE()
default ICondition
IConditionBuilder.itemExists
(String namespace, String path) default ICondition
default ICondition
IConditionBuilder.not
(ICondition value) default ICondition
IConditionBuilder.or
(ICondition... values) default ICondition
default ICondition
IConditionBuilder.TRUE()
NotCondition.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionAndCondition.children()
Returns the value of thechildren
record component.com.mojang.serialization.MapCodec
<? extends ICondition> AndCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> FalseCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> ICondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> ItemExistsCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> ModLoadedCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> NotCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> OrCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> TagEmptyCondition.codec()
com.mojang.serialization.MapCodec
<? extends ICondition> TrueCondition.codec()
WithConditions.conditions()
Returns the value of theconditions
record component.OrCondition.values()
Returns the value of thevalues
record component.Modifier and TypeMethodDescriptionWithConditions.Builder.addCondition
(ICondition... condition) default ICondition
IConditionBuilder.and
(ICondition... values) default ICondition
IConditionBuilder.not
(ICondition value) default ICondition
IConditionBuilder.or
(ICondition... values) static void
ICondition.writeConditions
(HolderLookup.Provider registries, com.google.gson.JsonObject jsonObject, ICondition... conditions) Writes an array of conditions to a JSON object.Modifier and TypeMethodDescriptionWithConditions.Builder.addCondition
(Collection<ICondition> conditions) static void
ICondition.writeConditions
(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, com.google.gson.JsonObject jsonObject, List<ICondition> conditions) Writes a list of conditions to a JSON object.static void
ICondition.writeConditions
(HolderLookup.Provider registries, com.google.gson.JsonObject jsonObject, List<ICondition> conditions) Writes a list of conditions to a JSON object.ModifierConstructorDescriptionNotCondition
(ICondition value) Creates an instance of aNotCondition
record class.WithConditions
(A carrier, ICondition... conditions) ModifierConstructorDescriptionAndCondition
(List<ICondition> children) Creates an instance of aAndCondition
record class.private
ConditionalDecoder
(String conditionalsPropertyKey, com.mojang.serialization.Codec<List<ICondition>> conditionsCodec, com.mojang.serialization.Codec<ICondition.IContext> contextCodec, com.mojang.serialization.Decoder<A> innerCodec) private
ConditionalEncoder
(String conditionalsPropertyKey, com.mojang.serialization.Codec<List<ICondition>> conditionsCodec, com.mojang.serialization.Encoder<A> innerCodec) OrCondition
(List<ICondition> values) Creates an instance of aOrCondition
record class.WithConditions
(List<ICondition> conditions, A carrier) Creates an instance of aWithConditions
record class. -
Uses of ICondition in net.neoforged.neoforge.common.crafting
Modifier and TypeMethodDescriptionvoid
ConditionalRecipeOutput.accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) ModifierConstructorDescriptionConditionalRecipeOutput
(RecipeOutput inner, ICondition[] conditions) -
Uses of ICondition in net.neoforged.neoforge.common.data
Modifier and TypeFieldDescriptionprivate final List
<ICondition> DataMapProvider.Builder.conditions
Modifier and TypeMethodDescriptionDataMapProvider.Builder.add
(Holder<R> object, T value, boolean replace, ICondition... conditions) DataMapProvider.Builder.add
(ResourceKey<R> key, T value, boolean replace, ICondition... conditions) DataMapProvider.Builder.add
(ResourceLocation id, T value, boolean replace, ICondition... conditions) DataMapProvider.Builder.add
(TagKey<R> tag, T value, boolean replace, ICondition... conditions) <T extends IGlobalLootModifier>
voidGlobalLootModifierProvider.add
(String modifier, T instance, ICondition... conditions) Passes in the data needed to create the file without any extra objects.DataMapProvider.Builder.conditions
(ICondition... conditions) Modifier and TypeMethodDescription<T extends IGlobalLootModifier>
voidGlobalLootModifierProvider.add
(String modifier, T instance, List<ICondition> conditions) Passes in the data needed to create the file without any extra objects. -
Uses of ICondition in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptionvoid
IRecipeOutputExtension.accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.default RecipeOutput
IRecipeOutputExtension.withConditions
(ICondition... conditions) Builds a wrapper around this recipe output that adds conditions to all received recipes. -
Uses of ICondition in net.neoforged.neoforge.registries
Modifier and TypeFieldDescriptionstatic final ResourceKey
<Registry<com.mojang.serialization.MapCodec<? extends ICondition>>> NeoForgeRegistries.Keys.CONDITION_CODECS
static final Registry
<com.mojang.serialization.MapCodec<? extends ICondition>> NeoForgeRegistries.CONDITION_SERIALIZERS