Uses of Interface
net.minecraft.world.level.storage.loot.predicates.LootItemCondition
Packages that use LootItemCondition
Package
Description
-
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... pConditions) 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> 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 booleanExecuteCommand.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.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 pParams) 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 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 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> 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 LootItemConditionModifierConstructorDescriptionprivateDynamicLoot(ResourceLocation p_79465_, int p_79466_, int p_79467_, List<LootItemCondition> p_299033_, List<LootItemFunction> p_298474_) privateEmptyLootItem(int p_79519_, int p_79520_, List<LootItemCondition> p_298942_, List<LootItemFunction> p_298310_) privateLootItem(Holder<Item> p_298423_, int p_79567_, int p_79568_, List<LootItemCondition> p_299249_, List<LootItemFunction> p_299128_) protectedLootPoolEntryContainer(List<LootItemCondition> pConditions) protectedLootPoolSingletonContainer(int pWeight, int pQuality, List<LootItemCondition> pConditions, List<LootItemFunction> pFunctions) privateNestedLootTable(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> p_330816_, int p_330486_, int p_331616_, List<LootItemCondition> p_330391_, List<LootItemFunction> p_332076_) privateTagEntry(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 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> 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 LootItemConditionModifierConstructorDescriptionprivateApplyBonusCount(List<LootItemCondition> p_298532_, Holder<Enchantment> p_298797_, ApplyBonusCount.Formula p_79905_) privateApplyExplosionDecay(List<LootItemCondition> p_298289_) privateCopyBlockState(List<LootItemCondition> p_298279_, Holder<Block> p_299047_, List<String> p_298632_) (package private)CopyBlockState(List<LootItemCondition> pConditions, Holder<Block> pBlock, Set<Property<?>> pProperties) (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_) privateCopyNameFunction(List<LootItemCondition> p_298700_, CopyNameFunction.NameSource p_80178_) DummyBuilder(Function<List<LootItemCondition>, LootItemFunction> pConstructor) (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_) FilteredFunction(List<LootItemCondition> p_341370_, ItemPredicate p_341210_, LootItemFunction p_340816_) privateFunctionReference(List<LootItemCondition> p_298661_, ResourceKey<LootItemFunction> p_335440_) privateLimitCount(List<LootItemCondition> p_299132_, IntRange p_165214_) protectedLootItemConditionalFunction(List<LootItemCondition> pPredicates) 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_) privateSetComponentsFunction(List<LootItemCondition> p_330669_, DataComponentPatch p_330819_) (package private)SetContainerContents(List<LootItemCondition> p_193035_, ContainerComponentManipulator<?> p_340836_, List<LootPoolEntryContainer> p_298300_) privateSetContainerLootTable(List<LootItemCondition> p_298290_, ResourceKey<LootTable> p_335525_, long p_193047_, Holder<BlockEntityType<?>> p_298416_) privateSetCustomDataFunction(List<LootItemCondition> p_330259_, CompoundTag p_330792_) 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_) SetFireworksFunction(List<LootItemCondition> p_333807_, Optional<ListOperation.StandAlone<FireworkExplosion>> p_333866_, Optional<Integer> p_341606_) privateSetInstrumentFunction(List<LootItemCondition> p_298993_, TagKey<Instrument> p_231009_) privateSetItemCountFunction(List<LootItemCondition> p_299158_, NumberProvider p_165410_, boolean p_165411_) privateSetItemDamageFunction(List<LootItemCondition> p_298394_, NumberProvider p_165428_, boolean p_165429_) 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_) privateSetNameFunction(List<LootItemCondition> p_299241_, Optional<Component> p_298804_, Optional<LootContext.EntityTarget> p_298545_, SetNameFunction.Target p_338830_) privateSetOminousBottleAmplifierFunction(List<LootItemCondition> p_338757_, NumberProvider p_338865_) privateSetPotionFunction(List<LootItemCondition> p_299010_, Holder<Potion> p_298587_) (package private)SetStewEffectFunction(List<LootItemCondition> p_298938_, List<SetStewEffectFunction.EffectEntry> p_298439_) SetWritableBookPagesFunction(List<LootItemCondition> p_333911_, List<Filterable<String>> p_333983_, ListOperation p_333754_) SetWrittenBookPagesFunction(List<LootItemCondition> p_333863_, List<Filterable<Component>> p_333788_, ListOperation p_334047_) privateSmeltItemFunction(List<LootItemCondition> p_299162_) 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 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 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> pConditions) 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> pConditions) static LootItemCondition.BuilderConditionReference.conditionReference(ResourceKey<LootItemCondition> pName) protected LootItemConditionAllOfCondition.Builder.create(List<LootItemCondition> p_298491_) protected LootItemConditionAnyOfCondition.Builder.create(List<LootItemCondition> p_298816_) protected abstract LootItemConditionCompositeLootItemCondition.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 LootItemConditionTypeLootItemConditions.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 aInvertedLootItemConditionrecord 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_) protectedCompositeLootItemCondition(List<LootItemCondition> pTerms, Predicate<LootContext> pComposedPredicate) 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.