Uses of Interface
net.minecraft.world.level.storage.loot.predicates.LootItemCondition
Packages that use LootItemCondition
Package
Description
Classes for NeoForge's own data generation.
-
Uses of LootItemCondition in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final List
<LootItemCondition> ContextAwarePredicate.conditions
Methods in net.minecraft.advancements.critereon with parameters of type LootItemConditionModifier and TypeMethodDescriptionstatic ContextAwarePredicate
ContextAwarePredicate.create
(LootItemCondition... p_286844_) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type LootItemConditionModifierConstructorDescription(package private)
ContextAwarePredicate
(List<LootItemCondition> p_298428_) -
Uses of LootItemCondition in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic Holder
<LootItemCondition> ResourceOrIdArgument.getLootPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_336183_, String p_336098_) -
Uses of LootItemCondition in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type LootItemConditionModifier and TypeFieldDescriptionstatic final ResourceKey
<Registry<LootItemCondition>> Registries.PREDICATE
-
Uses of LootItemCondition in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type LootItemConditionModifier and TypeMethodDescriptionprivate static boolean
ExecuteCommand.checkCustomPredicate
(CommandSourceStack p_137105_, Holder<LootItemCondition> p_335673_) -
Uses of LootItemCondition in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final Optional
<LootItemCondition> ConditionalEffect.requirements
The field for therequirements
record component.private final Optional
<LootItemCondition> TargetedConditionalEffect.requirements
The field for therequirements
record component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<LootItemCondition> ConditionalEffect.conditionCodec
(LootContextParamSet p_345335_) ConditionalEffect.requirements()
Returns the value of therequirements
record component.TargetedConditionalEffect.requirements()
Returns the value of therequirements
record component.Constructor parameters in net.minecraft.world.item.enchantment with type arguments of type LootItemConditionModifierConstructorDescriptionConditionalEffect
(T effect, Optional<LootItemCondition> requirements) Creates an instance of aConditionalEffect
record class.TargetedConditionalEffect
(EnchantmentTarget enchanted, EnchantmentTarget affected, T effect, Optional<LootItemCondition> requirements) Creates an instance of aTargetedConditionalEffect
record class. -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<LootItemCondition> LootPool.Builder.conditions
private final List
<LootItemCondition> LootPool.conditions
static final LootDataType
<LootItemCondition> LootDataType.PREDICATE
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type LootItemConditionMethods in net.minecraft.world.level.storage.loot with parameters of type LootItemCondition -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<LootItemCondition> LootPoolEntryContainer.Builder.conditions
protected final List
<LootItemCondition> LootPoolEntryContainer.conditions
Methods in net.minecraft.world.level.storage.loot.entries that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptionprotected static <T extends LootPoolEntryContainer>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, List<LootItemCondition>> LootPoolEntryContainer.commonFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299092_) protected List
<LootItemCondition> LootPoolEntryContainer.Builder.getConditions()
protected static <T extends LootPoolSingletonContainer>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> LootPoolSingletonContainer.singletonFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299239_) Method parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifier and TypeMethodDescriptionLootPoolSingletonContainer.EntryConstructor.build
(int p_79727_, int p_79728_, List<LootItemCondition> p_298278_, List<LootItemFunction> p_298826_) Constructor parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
DynamicLoot
(ResourceLocation p_79465_, int p_79466_, int p_79467_, List<LootItemCondition> p_299033_, List<LootItemFunction> p_298474_) private
EmptyLootItem
(int p_79519_, int p_79520_, List<LootItemCondition> p_298942_, List<LootItemFunction> p_298310_) private
LootItem
(Holder<Item> p_298423_, int p_79567_, int p_79568_, List<LootItemCondition> p_299249_, List<LootItemFunction> p_299128_) protected
LootPoolEntryContainer
(List<LootItemCondition> p_299002_) protected
LootPoolSingletonContainer
(int p_79681_, int p_79682_, List<LootItemCondition> p_298562_, List<LootItemFunction> p_299276_) private
NestedLootTable
(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> p_330816_, int p_330486_, int p_331616_, List<LootItemCondition> p_330391_, List<LootItemFunction> p_332076_) private
TagEntry
(TagKey<Item> p_205078_, boolean p_205079_, int p_205080_, int p_205081_, List<LootItemCondition> p_298985_, List<LootItemFunction> p_299088_) -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<LootItemCondition> LootItemConditionalFunction.Builder.conditions
private final Function
<List<LootItemCondition>, LootItemFunction> LootItemConditionalFunction.DummyBuilder.constructor
protected final List
<LootItemCondition> LootItemConditionalFunction.predicates
Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptionprotected static <T extends LootItemConditionalFunction>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, List<LootItemCondition>> LootItemConditionalFunction.commonFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_298453_) protected List
<LootItemCondition> LootItemConditionalFunction.Builder.getConditions()
Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemConditionModifier and TypeMethodDescriptionprotected static LootItemConditionalFunction.Builder
<?> LootItemConditionalFunction.simpleBuilder
(Function<List<LootItemCondition>, LootItemFunction> p_80684_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
ApplyBonusCount
(List<LootItemCondition> p_298532_, Holder<Enchantment> p_298797_, ApplyBonusCount.Formula p_79905_) private
ApplyExplosionDecay
(List<LootItemCondition> p_298289_) private
CopyBlockState
(List<LootItemCondition> p_298279_, Holder<Block> p_299047_, List<String> p_298632_) (package private)
CopyBlockState
(List<LootItemCondition> p_298625_, Holder<Block> p_298940_, Set<Property<?>> p_80052_) (package private)
CopyComponentsFunction
(List<LootItemCondition> p_330806_, CopyComponentsFunction.Source p_330881_, Optional<List<DataComponentType<?>>> p_338636_, Optional<List<DataComponentType<?>>> p_338680_) (package private)
CopyCustomDataFunction
(List<LootItemCondition> p_330826_, NbtProvider p_331866_, List<CopyCustomDataFunction.CopyOperation> p_332090_) private
CopyNameFunction
(List<LootItemCondition> p_298700_, CopyNameFunction.NameSource p_80178_) DummyBuilder
(Function<List<LootItemCondition>, LootItemFunction> p_80702_) (package private)
EnchantedCountIncreaseFunction
(List<LootItemCondition> p_344944_, Holder<Enchantment> p_345194_, NumberProvider p_344806_, int p_345432_) (package private)
EnchantRandomlyFunction
(List<LootItemCondition> p_299014_, Optional<HolderSet<Enchantment>> p_298965_, boolean p_344945_) (package private)
EnchantWithLevelsFunction
(List<LootItemCondition> p_298580_, NumberProvider p_165194_, Optional<HolderSet<Enchantment>> p_345769_) (package private)
ExplorationMapFunction
(List<LootItemCondition> p_298451_, TagKey<Structure> p_210653_, Holder<MapDecorationType> p_336106_, byte p_210655_, int p_210656_, boolean p_210657_) FillPlayerHead
(List<LootItemCondition> p_298265_, LootContext.EntityTarget p_80605_) private
FilteredFunction
(List<LootItemCondition> p_341370_, ItemPredicate p_341210_, LootItemFunction p_340816_) private
FunctionReference
(List<LootItemCondition> p_298661_, ResourceKey<LootItemFunction> p_335440_) private
LimitCount
(List<LootItemCondition> p_299132_, IntRange p_165214_) protected
LootItemConditionalFunction
(List<LootItemCondition> p_298706_) private
ModifyContainerContents
(List<LootItemCondition> p_340981_, ContainerComponentManipulator<?> p_341205_, LootItemFunction p_341360_) (package private)
SetAttributesFunction
(List<LootItemCondition> p_80834_, List<SetAttributesFunction.Modifier> p_298646_, boolean p_339689_) (package private)
SetBannerPatternFunction
(List<LootItemCondition> p_165276_, BannerPatternLayers p_331947_, boolean p_165277_) SetBookCoverFunction
(List<LootItemCondition> p_333787_, Optional<Filterable<String>> p_333956_, Optional<String> p_334034_, Optional<Integer> p_333739_) private
SetComponentsFunction
(List<LootItemCondition> p_330669_, DataComponentPatch p_330819_) (package private)
SetContainerContents
(List<LootItemCondition> p_193035_, ContainerComponentManipulator<?> p_340836_, List<LootPoolEntryContainer> p_298300_) private
SetContainerLootTable
(List<LootItemCondition> p_298290_, ResourceKey<LootTable> p_335525_, long p_193047_, Holder<BlockEntityType<?>> p_298416_) private
SetCustomDataFunction
(List<LootItemCondition> p_330259_, CompoundTag p_330792_) private
SetCustomModelDataFunction
(List<LootItemCondition> p_340822_, NumberProvider p_340847_) (package private)
SetEnchantmentsFunction
(List<LootItemCondition> p_299192_, Map<Holder<Enchantment>, NumberProvider> p_165338_, boolean p_165339_) SetFireworkExplosionFunction
(List<LootItemCondition> p_333763_, Optional<FireworkExplosion.Shape> p_333814_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333974_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333764_, Optional<Boolean> p_333876_, Optional<Boolean> p_334022_) protected
SetFireworksFunction
(List<LootItemCondition> p_333807_, Optional<ListOperation.StandAlone<FireworkExplosion>> p_333866_, Optional<Integer> p_341606_) private
SetInstrumentFunction
(List<LootItemCondition> p_298993_, TagKey<Instrument> p_231009_) private
SetItemCountFunction
(List<LootItemCondition> p_299158_, NumberProvider p_165410_, boolean p_165411_) private
SetItemDamageFunction
(List<LootItemCondition> p_298394_, NumberProvider p_165428_, boolean p_165429_) private
SetItemFunction
(List<LootItemCondition> p_340855_, Holder<Item> p_341008_) SetLoreFunction
(List<LootItemCondition> p_81085_, List<Component> p_298633_, ListOperation p_335651_, Optional<LootContext.EntityTarget> p_298623_) private
SetNameFunction
(List<LootItemCondition> p_299241_, Optional<Component> p_298804_, Optional<LootContext.EntityTarget> p_298545_, SetNameFunction.Target p_338830_) private
SetOminousBottleAmplifierFunction
(List<LootItemCondition> p_338757_, NumberProvider p_338865_) private
SetPotionFunction
(List<LootItemCondition> p_299010_, Holder<Potion> p_298587_) (package private)
SetStewEffectFunction
(List<LootItemCondition> p_298938_, List<SetStewEffectFunction.EffectEntry> p_298439_) protected
SetWritableBookPagesFunction
(List<LootItemCondition> p_333911_, List<Filterable<String>> p_333983_, ListOperation p_333754_) protected
SetWrittenBookPagesFunction
(List<LootItemCondition> p_333863_, List<Filterable<Component>> p_333788_, ListOperation p_334047_) private
SmeltItemFunction
(List<LootItemCondition> p_299162_) private
ToggleTooltips
(List<LootItemCondition> p_335479_, Map<ToggleTooltips.ComponentToggle<?>, Boolean> p_336164_) -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot.predicates
Classes in net.minecraft.world.level.storage.loot.predicates that implement LootItemConditionModifier and TypeClassDescriptionclass
class
final record
class
final record
final record
final record
final record
class
final record
final record
final record
final record
class
final record
final record
final record
final record
final record
final record
Fields in net.minecraft.world.level.storage.loot.predicates declared as LootItemConditionModifier and TypeFieldDescriptionprivate final LootItemCondition
InvertedLootItemCondition.term
The field for theterm
record component.Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec
<? extends LootItemCondition> LootItemConditionType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec
<Holder<LootItemCondition>> LootItemCondition.CODEC
static final com.mojang.serialization.Codec
<LootItemCondition> LootItemCondition.DIRECT_CODEC
private final ResourceKey
<LootItemCondition> ConditionReference.name
The field for thename
record component.private final com.google.common.collect.ImmutableList.Builder
<LootItemCondition> CompositeLootItemCondition.Builder.terms
protected final List
<LootItemCondition> CompositeLootItemCondition.terms
static final com.mojang.serialization.Codec
<LootItemCondition> LootItemCondition.TYPED_CODEC
Methods in net.minecraft.world.level.storage.loot.predicates that return LootItemConditionModifier and TypeMethodDescriptionCompositeLootItemCondition.Builder.build()
EntityHasScoreCondition.Builder.build()
LootItemBlockStatePropertyCondition.Builder.build()
LootItemCondition.Builder.build()
protected LootItemCondition
AllOfCondition.Builder.create
(List<LootItemCondition> p_298491_) protected LootItemCondition
AnyOfCondition.Builder.create
(List<LootItemCondition> p_298816_) protected abstract LootItemCondition
CompositeLootItemCondition.Builder.create
(List<LootItemCondition> p_299194_) InvertedLootItemCondition.term()
Returns the value of theterm
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends LootItemCondition> LootItemConditionType.codec()
Returns the value of thecodec
record component.ConditionReference.name()
Returns the value of thename
record component.Method parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic AllOfCondition
AllOfCondition.allOf
(List<LootItemCondition> p_298400_) static LootItemCondition.Builder
ConditionReference.conditionReference
(ResourceKey<LootItemCondition> p_335879_) protected LootItemCondition
AllOfCondition.Builder.create
(List<LootItemCondition> p_298491_) protected LootItemCondition
AnyOfCondition.Builder.create
(List<LootItemCondition> p_298816_) protected abstract LootItemCondition
CompositeLootItemCondition.Builder.create
(List<LootItemCondition> p_299194_) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.MapCodec<T> CompositeLootItemCondition.createCodec
(Function<List<LootItemCondition>, T> p_298515_) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.Codec<T> CompositeLootItemCondition.createInlineCodec
(Function<List<LootItemCondition>, T> p_298806_) private static LootItemConditionType
LootItemConditions.register
(String p_81832_, com.mojang.serialization.MapCodec<? extends LootItemCondition> p_338774_) Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type LootItemConditionModifierConstructorDescriptionCreates an instance of aInvertedLootItemCondition
record class.Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type LootItemConditionModifierConstructorDescription(package private)
AllOfCondition
(List<LootItemCondition> p_299216_) (package private)
AnyOfCondition
(List<LootItemCondition> p_299191_) protected
CompositeLootItemCondition
(List<LootItemCondition> p_298458_, Predicate<LootContext> p_286771_) Creates an instance of aConditionReference
record class.LootItemConditionType
(com.mojang.serialization.MapCodec<? extends LootItemCondition> codec) Creates an instance of aLootItemConditionType
record class. -
Uses of LootItemCondition in net.neoforged.neoforge.common.data.internal
Fields in net.neoforged.neoforge.common.data.internal with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final List
<Function<LootItemCondition, LootItemCondition.Builder>> NeoForgeLootTableProvider.conditionReplacers
Methods in net.neoforged.neoforge.common.data.internal with parameters of type LootItemConditionModifier and TypeMethodDescriptionprivate boolean
NeoForgeLootTableProvider.replaceCondition
(LootItemCondition lootCondition, Consumer<LootItemCondition.Builder> poolBuilder) Method parameters in net.neoforged.neoforge.common.data.internal with type arguments of type LootItemConditionModifier and TypeMethodDescriptionprivate static @Nullable ContextAwarePredicate
NeoForgeAdvancementProvider.replaceConditions
(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private static @Nullable ContextAwarePredicate
NeoForgeAdvancementProvider.replaceConditions
(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private void
NeoForgeLootTableProvider.replaceLootItemCondition
(Function<LootItemCondition, LootItemCondition.Builder> replacer) private static BiFunction
<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replacePlayerPredicate
(UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private static BiFunction
<Criterion<?>, HolderLookup.Provider, Criterion<?>> NeoForgeAdvancementProvider.replacePlayerPredicate
(UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) -
Uses of LootItemCondition in net.neoforged.neoforge.common.loot
Classes in net.neoforged.neoforge.common.loot that implement LootItemConditionModifier and TypeClassDescriptionclass
This LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.class
Fields in net.neoforged.neoforge.common.loot declared as LootItemConditionMethods in net.neoforged.neoforge.common.loot that return LootItemConditionConstructors in net.neoforged.neoforge.common.loot with parameters of type LootItemConditionModifierConstructorDescriptionAddTableLootModifier
(LootItemCondition[] conditionsIn, ResourceKey<LootTable> table) protected
LootModifier
(LootItemCondition[] conditionsIn) Constructs a LootModifier.