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... conditions) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type LootItemConditionModifierConstructorDescription(package private)
ContextAwarePredicate
(List<LootItemCondition> conditions) -
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> context, String name) -
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 source, Holder<LootItemCondition> condition) -
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 params) 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
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> instance) 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> instance) Method parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifier and TypeMethodDescriptionLootPoolSingletonContainer.EntryConstructor.build
(int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) Constructor parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
DynamicLoot
(ResourceLocation name, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) private
EmptyLootItem
(int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) private
LootItem
(Holder<Item> item, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) protected
LootPoolEntryContainer
(List<LootItemCondition> conditions) protected
LootPoolSingletonContainer
(int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) private
NestedLootTable
(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> contents, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) private
TagEntry
(TagKey<Item> tag, boolean expand, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) -
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> instance) 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> constructor) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemConditionModifierConstructorDescriptionprivate
ApplyBonusCount
(List<LootItemCondition> predicates, Holder<Enchantment> enchantment, ApplyBonusCount.Formula formula) private
ApplyExplosionDecay
(List<LootItemCondition> conditions) private
CopyBlockState
(List<LootItemCondition> conditions, Holder<Block> block, List<String> properties) (package private)
CopyBlockState
(List<LootItemCondition> conditions, Holder<Block> block, Set<Property<?>> properties) (package private)
CopyComponentsFunction
(List<LootItemCondition> conditions, CopyComponentsFunction.Source source, Optional<List<DataComponentType<?>>> include, Optional<List<DataComponentType<?>>> exclude) (package private)
CopyCustomDataFunction
(List<LootItemCondition> conditions, NbtProvider source, List<CopyCustomDataFunction.CopyOperation> operations) private
CopyNameFunction
(List<LootItemCondition> conditions, CopyNameFunction.NameSource source) DummyBuilder
(Function<List<LootItemCondition>, LootItemFunction> constructor) (package private)
EnchantedCountIncreaseFunction
(List<LootItemCondition> conditions, Holder<Enchantment> enchantment, NumberProvider value, int limit) (package private)
EnchantRandomlyFunction
(List<LootItemCondition> conditons, Optional<HolderSet<Enchantment>> options, boolean onlyCompatible) (package private)
EnchantWithLevelsFunction
(List<LootItemCondition> condtions, NumberProvider levels, Optional<HolderSet<Enchantment>> options) (package private)
ExplorationMapFunction
(List<LootItemCondition> conditons, TagKey<Structure> destination, Holder<MapDecorationType> mapDecoration, byte zoom, int searchRadius, boolean skipKnownStructures) FillPlayerHead
(List<LootItemCondition> conditions, LootContext.EntityTarget entityTarget) FilteredFunction
(List<LootItemCondition> conditions, ItemPredicate filter, LootItemFunction modifier) private
FunctionReference
(List<LootItemCondition> conditions, ResourceKey<LootItemFunction> name) private
LimitCount
(List<LootItemCondition> conditions, IntRange limiter) protected
LootItemConditionalFunction
(List<LootItemCondition> predicates) ModifyContainerContents
(List<LootItemCondition> conditions, ContainerComponentManipulator<?> components, LootItemFunction modifier) (package private)
SetAttributesFunction
(List<LootItemCondition> conditions, List<SetAttributesFunction.Modifier> modifiers, boolean replace) (package private)
SetBannerPatternFunction
(List<LootItemCondition> conditions, BannerPatternLayers patterns, boolean append) SetBookCoverFunction
(List<LootItemCondition> conditons, Optional<Filterable<String>> title, Optional<String> author, Optional<Integer> generation) private
SetComponentsFunction
(List<LootItemCondition> condition, DataComponentPatch components) (package private)
SetContainerContents
(List<LootItemCondition> conditions, ContainerComponentManipulator<?> component, List<LootPoolEntryContainer> entries) private
SetContainerLootTable
(List<LootItemCondition> conditions, ResourceKey<LootTable> name, long seed, Holder<BlockEntityType<?>> type) private
SetCustomDataFunction
(List<LootItemCondition> conditions, CompoundTag tag) SetCustomModelDataFunction
(List<LootItemCondition> conditions, NumberProvider valueProvider) (package private)
SetEnchantmentsFunction
(List<LootItemCondition> conditions, Map<Holder<Enchantment>, NumberProvider> enchantments, boolean add) SetFireworkExplosionFunction
(List<LootItemCondition> conditions, Optional<FireworkExplosion.Shape> shape, Optional<it.unimi.dsi.fastutil.ints.IntList> colors, Optional<it.unimi.dsi.fastutil.ints.IntList> fadeColors, Optional<Boolean> trail, Optional<Boolean> twinkle) SetFireworksFunction
(List<LootItemCondition> conditions, Optional<ListOperation.StandAlone<FireworkExplosion>> explosions, Optional<Integer> flightDuration) private
SetInstrumentFunction
(List<LootItemCondition> conditions, TagKey<Instrument> options) private
SetItemCountFunction
(List<LootItemCondition> conditions, NumberProvider value, boolean add) private
SetItemDamageFunction
(List<LootItemCondition> conditions, NumberProvider damage, boolean add) SetItemFunction
(List<LootItemCondition> conditions, Holder<Item> item) SetLoreFunction
(List<LootItemCondition> conditions, List<Component> lore, ListOperation mode, Optional<LootContext.EntityTarget> resolutionContext) private
SetNameFunction
(List<LootItemCondition> conditions, Optional<Component> name, Optional<LootContext.EntityTarget> resolutionContext, SetNameFunction.Target target) private
SetOminousBottleAmplifierFunction
(List<LootItemCondition> conditions, NumberProvider amplifierGenerator) private
SetPotionFunction
(List<LootItemCondition> conditions, Holder<Potion> potion) (package private)
SetStewEffectFunction
(List<LootItemCondition> conditions, List<SetStewEffectFunction.EffectEntry> effects) SetWritableBookPagesFunction
(List<LootItemCondition> conditions, List<Filterable<String>> pages, ListOperation pageOperation) SetWrittenBookPagesFunction
(List<LootItemCondition> conditions, List<Filterable<Component>> pages, ListOperation pageOperation) private
SmeltItemFunction
(List<LootItemCondition> conditions) ToggleTooltips
(List<LootItemCondition> conditions, Map<ToggleTooltips.ComponentToggle<?>, Boolean> values) -
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 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> conditions) 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> conditions) static LootItemCondition.Builder
ConditionReference.conditionReference
(ResourceKey<LootItemCondition> name) 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> conditions) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.MapCodec<T> CompositeLootItemCondition.createCodec
(Function<List<LootItemCondition>, T> factory) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.Codec<T> CompositeLootItemCondition.createInlineCodec
(Function<List<LootItemCondition>, T> factory) private static LootItemConditionType
LootItemConditions.register
(String name, com.mojang.serialization.MapCodec<? extends LootItemCondition> codec) 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> conditions) (package private)
AnyOfCondition
(List<LootItemCondition> conditions) protected
CompositeLootItemCondition
(List<LootItemCondition> terms, Predicate<LootContext> composedPredicate) 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.