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... pConditions) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type LootItemConditionModifierConstructorDescription(package private)
ContextAwarePredicate
(List<LootItemCondition> pConditions) -
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> pContext, String pName) -
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 pSource, Holder<LootItemCondition> pCondition) -
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
(ContextKeySet pContextKeySet) 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 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 ImmutableList.Builder
<LootItemCondition> LootPoolEntryContainer.Builder.conditions
protected final List
<LootItemCondition> LootPoolEntryContainer.conditions
Conditions for the loot entry to be applied.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> pInstance) 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> pInstance) Method parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifier and TypeMethodDescriptionLootPoolSingletonContainer.EntryConstructor.build
(int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) Constructor parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
DynamicLoot
(ResourceLocation pName, int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) private
EmptyLootItem
(int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) private
LootItem
(Holder<Item> pItem, int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) protected
LootPoolEntryContainer
(List<LootItemCondition> pConditions) protected
LootPoolSingletonContainer
(int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) private
NestedLootTable
(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> pContents, int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) private
TagEntry
(TagKey<Item> pTag, boolean pExpand, int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) -
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 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> pInstance) protected List
<LootItemCondition> LootItemConditionalFunction.Builder.getConditions()
Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> LootItemConditionalFunction.simpleBuilder
(Function<List<LootItemCondition>, LootItemFunction> pConstructor) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
ApplyBonusCount
(List<LootItemCondition> pPredicates, Holder<Enchantment> pEnchantment, ApplyBonusCount.Formula pFormula) private
ApplyExplosionDecay
(List<LootItemCondition> pConditions) private
CopyBlockState
(List<LootItemCondition> pConditions, Holder<Block> pBlock, List<String> pProperties) (package private)
CopyBlockState
(List<LootItemCondition> pConditions, Holder<Block> pBlock, Set<Property<?>> pProperties) (package private)
CopyComponentsFunction
(List<LootItemCondition> pConditions, CopyComponentsFunction.Source pSource, Optional<List<DataComponentType<?>>> pInclude, Optional<List<DataComponentType<?>>> pExclude) (package private)
CopyCustomDataFunction
(List<LootItemCondition> pConditions, NbtProvider pSource, List<CopyCustomDataFunction.CopyOperation> pOperations) private
CopyNameFunction
(List<LootItemCondition> pConditions, CopyNameFunction.NameSource pSource) DummyBuilder
(Function<List<LootItemCondition>, LootItemFunction> pConstructor) (package private)
EnchantedCountIncreaseFunction
(List<LootItemCondition> pConditions, Holder<Enchantment> pEnchantment, NumberProvider pValue, int pLimit) (package private)
EnchantRandomlyFunction
(List<LootItemCondition> pConditons, Optional<HolderSet<Enchantment>> pOptions, boolean pOnlyCompatible) (package private)
EnchantWithLevelsFunction
(List<LootItemCondition> pCondtions, NumberProvider pLevels, Optional<HolderSet<Enchantment>> pOptions) (package private)
ExplorationMapFunction
(List<LootItemCondition> pConditons, TagKey<Structure> pDestination, Holder<MapDecorationType> pMapDecoration, byte pZoom, int pSearchRadius, boolean pSkipKnownStructures) FillPlayerHead
(List<LootItemCondition> pConditions, LootContext.EntityTarget pEntityTarget) FilteredFunction
(List<LootItemCondition> pConditions, ItemPredicate pFilter, LootItemFunction pModifier) private
FunctionReference
(List<LootItemCondition> pConditions, ResourceKey<LootItemFunction> pName) private
LimitCount
(List<LootItemCondition> pConditions, IntRange pLimiter) protected
LootItemConditionalFunction
(List<LootItemCondition> pPredicates) ModifyContainerContents
(List<LootItemCondition> pConditions, ContainerComponentManipulator<?> pComponents, LootItemFunction pModifier) (package private)
SetAttributesFunction
(List<LootItemCondition> pConditions, List<SetAttributesFunction.Modifier> pModifiers, boolean pReplace) (package private)
SetBannerPatternFunction
(List<LootItemCondition> pConditions, BannerPatternLayers pPatterns, boolean pAppend) SetBookCoverFunction
(List<LootItemCondition> pConditons, Optional<Filterable<String>> pTitle, Optional<String> pAuthor, Optional<Integer> pGeneration) private
SetComponentsFunction
(List<LootItemCondition> pCondition, DataComponentPatch pComponents) (package private)
SetContainerContents
(List<LootItemCondition> pConditions, ContainerComponentManipulator<?> pComponent, List<LootPoolEntryContainer> pEntries) private
SetContainerLootTable
(List<LootItemCondition> pConditions, ResourceKey<LootTable> pName, long pSeed, Holder<BlockEntityType<?>> pType) private
SetCustomDataFunction
(List<LootItemCondition> pConditions, CompoundTag pTag) SetCustomModelDataFunction
(List<LootItemCondition> pConditions, Optional<ListOperation.StandAlone<NumberProvider>> pFloats, Optional<ListOperation.StandAlone<Boolean>> pFlags, Optional<ListOperation.StandAlone<String>> pStrings, Optional<ListOperation.StandAlone<NumberProvider>> pColors) (package private)
SetEnchantmentsFunction
(List<LootItemCondition> pConditions, Map<Holder<Enchantment>, NumberProvider> pEnchantments, boolean pAdd) SetFireworkExplosionFunction
(List<LootItemCondition> pConditions, Optional<FireworkExplosion.Shape> pShape, Optional<it.unimi.dsi.fastutil.ints.IntList> pColors, Optional<it.unimi.dsi.fastutil.ints.IntList> pFadeColors, Optional<Boolean> pTrail, Optional<Boolean> pTwinkle) SetFireworksFunction
(List<LootItemCondition> pConditions, Optional<ListOperation.StandAlone<FireworkExplosion>> pExplosions, Optional<Integer> pFlightDuration) private
SetInstrumentFunction
(List<LootItemCondition> pConditions, TagKey<Instrument> pOptions) private
SetItemCountFunction
(List<LootItemCondition> pConditions, NumberProvider pValue, boolean pAdd) private
SetItemDamageFunction
(List<LootItemCondition> pConditions, NumberProvider pDamage, boolean pAdd) SetItemFunction
(List<LootItemCondition> pConditions, Holder<Item> pItem) SetLoreFunction
(List<LootItemCondition> pConditions, List<Component> pLore, ListOperation pMode, Optional<LootContext.EntityTarget> pResolutionContext) private
SetNameFunction
(List<LootItemCondition> pConditions, Optional<Component> pName, Optional<LootContext.EntityTarget> pResolutionContext, SetNameFunction.Target pTarget) private
SetOminousBottleAmplifierFunction
(List<LootItemCondition> pConditions, NumberProvider pAmplifierGenerator) private
SetPotionFunction
(List<LootItemCondition> pConditions, Holder<Potion> pPotion) (package private)
SetStewEffectFunction
(List<LootItemCondition> pConditions, List<SetStewEffectFunction.EffectEntry> pEffects) SetWritableBookPagesFunction
(List<LootItemCondition> pConditions, List<Filterable<String>> pPages, ListOperation pPageOperation) SetWrittenBookPagesFunction
(List<LootItemCondition> pConditions, List<Filterable<Component>> pPages, ListOperation pPageOperation) private
SmeltItemFunction
(List<LootItemCondition> pConditions) ToggleTooltips
(List<LootItemCondition> pConditions, Map<DataComponentType<?>, Boolean> pValues) -
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
A LootItemCondition that provides a random chance based on the level of a certain enchantment on the tool.class
final record
A LootItemCondition that refers to another LootItemCondition by its ID.final record
A LootItemCondition which checksLootContextParams.ORIGIN
andLootContextParams.DAMAGE_SOURCE
against aDamageSourcePredicate
.final record
final record
A LootItemCondition that checks if an Entity selected by aLootContext.EntityTarget
has a given set of scores.class
A LootItemCondition that checks whether an item should survive from an explosion or not.final record
A LootItemCondition that inverts the output of another one.final record
LootItemCondition that checks theinvalid reference
LootContextParams.ORIGIN
LocationPredicate
after applying an offset to the origin position.final record
A LootItemCondition that checks whether the block state matches a given Block andStatePropertiesPredicate
.final record
A LootItemCondition that checks a givenEntityPredicate
against a givenLootContext.EntityTarget
.class
A LootItemCondition that matches if the last damage to an entity was done by a player.final record
A LootItemCondition that succeeds with a given probability.final record
final record
A LootItemCondition that checks the tool against anItemPredicate
.final record
final record
LootItemCondition that checks if a number provided by aNumberProvider
is within anIntRange
.final record
A LootItemCondition that checks whether it currently raining or thundering.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 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> pConditions) 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> pConditions) static LootItemCondition.Builder
ConditionReference.conditionReference
(ResourceKey<LootItemCondition> pName) 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> pConditions) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.MapCodec<T> CompositeLootItemCondition.createCodec
(Function<List<LootItemCondition>, T> pFactory) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.Codec<T> CompositeLootItemCondition.createInlineCodec
(Function<List<LootItemCondition>, T> pFactory) private static LootItemConditionType
LootItemConditions.register
(String pName, com.mojang.serialization.MapCodec<? extends LootItemCondition> pCodec) 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> pConditions) (package private)
AnyOfCondition
(List<LootItemCondition> pConditions) protected
CompositeLootItemCondition
(List<LootItemCondition> pTerms, Predicate<LootContext> pComposedPredicate) 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.