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.conditionsMethods in net.minecraft.advancements.critereon with parameters of type LootItemConditionModifier and TypeMethodDescriptionstatic ContextAwarePredicateContextAwarePredicate.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 booleanExecuteCommand.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.requirementsThe field for therequirementsrecord component.private final Optional<LootItemCondition> TargetedConditionalEffect.requirementsThe field for therequirementsrecord 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 therequirementsrecord component.TargetedConditionalEffect.requirements()Returns the value of therequirementsrecord component.Constructor parameters in net.minecraft.world.item.enchantment with type arguments of type LootItemConditionModifierConstructorDescriptionConditionalEffect(T effect, Optional<LootItemCondition> requirements) Creates an instance of aConditionalEffectrecord class.TargetedConditionalEffect(EnchantmentTarget enchanted, EnchantmentTarget affected, T effect, Optional<LootItemCondition> requirements) Creates an instance of aTargetedConditionalEffectrecord 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.conditionsprivate final List<LootItemCondition> LootPool.conditionsstatic final LootDataType<LootItemCondition> LootDataType.PREDICATEMethods 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.conditionsprotected final List<LootItemCondition> LootPoolEntryContainer.conditionsConditions 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 LootItemConditionModifierConstructorDescriptionprivateDynamicLoot(ResourceLocation name, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) privateEmptyLootItem(int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) privateLootItem(Holder<Item> item, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) protectedLootPoolEntryContainer(List<LootItemCondition> conditions) protectedLootPoolSingletonContainer(int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) privateNestedLootTable(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> contents, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) privateTagEntry(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.conditionsprivate final Function<List<LootItemCondition>, LootItemFunction> LootItemConditionalFunction.DummyBuilder.constructorprotected final List<LootItemCondition> LootItemConditionalFunction.predicatesMethods 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 LootItemConditionModifierConstructorDescriptionprivateApplyBonusCount(List<LootItemCondition> predicates, Holder<Enchantment> enchantment, ApplyBonusCount.Formula formula) privateApplyExplosionDecay(List<LootItemCondition> conditions) privateCopyBlockState(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) privateCopyNameFunction(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) privateFunctionReference(List<LootItemCondition> conditions, ResourceKey<LootItemFunction> name) privateLimitCount(List<LootItemCondition> conditions, IntRange limiter) protectedLootItemConditionalFunction(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) privateSetComponentsFunction(List<LootItemCondition> condition, DataComponentPatch components) (package private)SetContainerContents(List<LootItemCondition> conditions, ContainerComponentManipulator<?> component, List<LootPoolEntryContainer> entries) privateSetContainerLootTable(List<LootItemCondition> conditions, ResourceKey<LootTable> name, long seed, Holder<BlockEntityType<?>> type) privateSetCustomDataFunction(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) privateSetInstrumentFunction(List<LootItemCondition> conditions, TagKey<Instrument> options) privateSetItemCountFunction(List<LootItemCondition> conditions, NumberProvider value, boolean add) privateSetItemDamageFunction(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) privateSetNameFunction(List<LootItemCondition> conditions, Optional<Component> name, Optional<LootContext.EntityTarget> resolutionContext, SetNameFunction.Target target) privateSetOminousBottleAmplifierFunction(List<LootItemCondition> conditions, NumberProvider amplifierGenerator) privateSetPotionFunction(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) privateSmeltItemFunction(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 TypeClassDescriptionclassclassfinal recordA LootItemCondition that provides a random chance based on the level of a certain enchantment on the tool.classfinal recordA LootItemCondition that refers to another LootItemCondition by its ID.final recordA LootItemCondition which checksLootContextParams.ORIGINandLootContextParams.DAMAGE_SOURCEagainst aDamageSourcePredicate.final recordfinal recordA LootItemCondition that checks if an Entity selected by aLootContext.EntityTargethas a given set of scores.classA LootItemCondition that checks whether an item should survive from an explosion or not.final recordA LootItemCondition that inverts the output of another one.final recordLootItemCondition that checks theposition against ainvalid reference
LootContextParams.ORIGINLocationPredicateafter applying an offset to the origin position.final recordA LootItemCondition that checks whether the block state matches a given Block andStatePropertiesPredicate.final recordA LootItemCondition that checks a givenEntityPredicateagainst a givenLootContext.EntityTarget.classA LootItemCondition that matches if the last damage to an entity was done by a player.final recordA LootItemCondition that succeeds with a given probability.final recordfinal recordA LootItemCondition that checks the tool against anItemPredicate.final recordfinal recordLootItemCondition that checks if a number provided by aNumberProvideris within anIntRange.final recordA LootItemCondition that checks whether it currently raining or thundering.Fields in net.minecraft.world.level.storage.loot.predicates declared as LootItemConditionModifier and TypeFieldDescriptionprivate final LootItemConditionInvertedLootItemCondition.termThe field for thetermrecord 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.codecThe field for thecodecrecord component.static final com.mojang.serialization.Codec<Holder<LootItemCondition>> LootItemCondition.CODECstatic final com.mojang.serialization.Codec<LootItemCondition> LootItemCondition.DIRECT_CODECprivate final ResourceKey<LootItemCondition> ConditionReference.nameThe field for thenamerecord component.private final com.google.common.collect.ImmutableList.Builder<LootItemCondition> CompositeLootItemCondition.Builder.termsprotected final List<LootItemCondition> CompositeLootItemCondition.termsstatic final com.mojang.serialization.Codec<LootItemCondition> LootItemCondition.TYPED_CODECMethods 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 LootItemConditionAllOfCondition.Builder.create(List<LootItemCondition> p_298491_) protected LootItemConditionAnyOfCondition.Builder.create(List<LootItemCondition> p_298816_) protected abstract LootItemConditionCompositeLootItemCondition.Builder.create(List<LootItemCondition> conditions) InvertedLootItemCondition.term()Returns the value of thetermrecord 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 thecodecrecord component.ConditionReference.name()Returns the value of thenamerecord component.Method parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic AllOfConditionAllOfCondition.allOf(List<LootItemCondition> conditions) static LootItemCondition.BuilderConditionReference.conditionReference(ResourceKey<LootItemCondition> name) protected LootItemConditionAllOfCondition.Builder.create(List<LootItemCondition> p_298491_) protected LootItemConditionAnyOfCondition.Builder.create(List<LootItemCondition> p_298816_) protected abstract LootItemConditionCompositeLootItemCondition.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 LootItemConditionTypeLootItemConditions.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 aInvertedLootItemConditionrecord 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) protectedCompositeLootItemCondition(List<LootItemCondition> terms, Predicate<LootContext> composedPredicate) Creates an instance of aConditionReferencerecord class.LootItemConditionType(com.mojang.serialization.MapCodec<? extends LootItemCondition> codec) Creates an instance of aLootItemConditionTyperecord 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.conditionReplacersMethods in net.neoforged.neoforge.common.data.internal with parameters of type LootItemConditionModifier and TypeMethodDescriptionprivate booleanNeoForgeLootTableProvider.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 ContextAwarePredicateNeoForgeAdvancementProvider.replaceConditions(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private static @Nullable ContextAwarePredicateNeoForgeAdvancementProvider.replaceConditions(@Nullable ContextAwarePredicate basePredicate, UnaryOperator<LootItemCondition> replacer, Predicate<LootItemCondition> shouldSkipReplacement) private voidNeoForgeLootTableProvider.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 TypeClassDescriptionclassThis LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.classFields 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) protectedLootModifier(LootItemCondition[] conditionsIn) Constructs a LootModifier.