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.criterion
Fields in net.minecraft.advancements.criterion with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final List<LootItemCondition> ContextAwarePredicate.conditionsMethods in net.minecraft.advancements.criterion with parameters of type LootItemConditionModifier and TypeMethodDescriptionstatic ContextAwarePredicateContextAwarePredicate.create(LootItemCondition... conditions) Constructor parameters in net.minecraft.advancements.criterion with type arguments of type LootItemConditionModifierConstructorDescription(package private)ContextAwarePredicate(List<LootItemCondition> conditions) -
Uses of LootItemCondition in net.minecraft.commands.arguments
Subclasses with type arguments of type LootItemCondition in net.minecraft.commands.argumentsMethods 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 Registry<com.mojang.serialization.MapCodec<? extends LootItemCondition>> BuiltInRegistries.LOOT_CONDITION_TYPEstatic final ResourceKey<Registry<com.mojang.serialization.MapCodec<? extends LootItemCondition>>> Registries.LOOT_CONDITION_TYPEstatic 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> predicate) -
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 TypeMethodDescriptionConditionalEffect.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.item.trading
Fields in net.minecraft.world.item.trading with type parameters of type LootItemConditionModifier and TypeFieldDescriptionprivate final Optional<LootItemCondition> VillagerTrade.merchantPredicateMethods in net.minecraft.world.item.trading that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptionstatic Optional<LootItemCondition> VillagerTrades.villagerTypeRestriction(HolderSet<VillagerType> villagerTypes) Constructor parameters in net.minecraft.world.item.trading with type arguments of type LootItemConditionModifierConstructorDescriptionVillagerTrade(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers) -
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> i) 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> i) 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(Identifier 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) privateSlotLoot(SlotSource slotSource, 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 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> i) 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> predicates) privateCopyBlockState(List<LootItemCondition> predicates, Holder<Block> block, List<String> propertyNames) privateCopyBlockState(List<LootItemCondition> predicates, Holder<Block> block, Set<Property<?>> properties) privateCopyComponentsFunction(List<LootItemCondition> predicates, LootContextArg<DataComponentGetter> source, Optional<List<DataComponentType<?>>> include, Optional<List<DataComponentType<?>>> exclude) privateCopyCustomDataFunction(List<LootItemCondition> predicates, NbtProvider source, List<CopyCustomDataFunction.CopyOperation> operations) privateCopyNameFunction(List<LootItemCondition> predicates, LootContextArg<?> source) protectedDiscardItem(List<LootItemCondition> predicates) DummyBuilder(Function<List<LootItemCondition>, LootItemFunction> constructor) privateEnchantedCountIncreaseFunction(List<LootItemCondition> predicates, Holder<Enchantment> enchantment, NumberProvider count, int limit) privateEnchantRandomlyFunction(List<LootItemCondition> predicates, Optional<HolderSet<Enchantment>> options, boolean onlyCompatible, boolean includeAdditionalCostComponent) privateEnchantWithLevelsFunction(List<LootItemCondition> predicates, NumberProvider levels, Optional<HolderSet<Enchantment>> options, boolean includeAdditionalCostComponent) privateExplorationMapFunction(List<LootItemCondition> predicates, TagKey<Structure> destination, Holder<MapDecorationType> mapDecoration, byte zoom, int searchRadius, boolean skipKnownStructures) FillPlayerHead(List<LootItemCondition> predicates, LootContext.EntityTarget entityTarget) FilteredFunction(List<LootItemCondition> predicates, ItemPredicate filter, Optional<LootItemFunction> onPass, Optional<LootItemFunction> onFail) privateFunctionReference(List<LootItemCondition> predicates, ResourceKey<LootItemFunction> name) privateLimitCount(List<LootItemCondition> predicates, IntRange limit) protectedLootItemConditionalFunction(List<LootItemCondition> predicates) ModifyContainerContents(List<LootItemCondition> predicates, ContainerComponentManipulator<?> component, LootItemFunction modifier) privateSetAttributesFunction(List<LootItemCondition> predicates, List<SetAttributesFunction.Modifier> modifiers, boolean replace) privateSetBannerPatternFunction(List<LootItemCondition> predicates, BannerPatternLayers patterns, boolean append) SetBookCoverFunction(List<LootItemCondition> predicates, Optional<Filterable<String>> title, Optional<String> author, Optional<Integer> generation) privateSetComponentsFunction(List<LootItemCondition> predicates, DataComponentPatch components) privateSetContainerContents(List<LootItemCondition> predicates, ContainerComponentManipulator<?> component, List<LootPoolEntryContainer> entries) privateSetContainerLootTable(List<LootItemCondition> predicates, ResourceKey<LootTable> name, long seed, Holder<BlockEntityType<?>> type) privateSetCustomDataFunction(List<LootItemCondition> predicates, CompoundTag tag) SetCustomModelDataFunction(List<LootItemCondition> predicates, Optional<ListOperation.StandAlone<NumberProvider>> floats, Optional<ListOperation.StandAlone<Boolean>> flags, Optional<ListOperation.StandAlone<String>> strings, Optional<ListOperation.StandAlone<NumberProvider>> colors) privateSetEnchantmentsFunction(List<LootItemCondition> predicates, Map<Holder<Enchantment>, NumberProvider> enchantments, boolean add) SetFireworkExplosionFunction(List<LootItemCondition> predicates, Optional<FireworkExplosion.Shape> shape, Optional<it.unimi.dsi.fastutil.ints.IntList> colors, Optional<it.unimi.dsi.fastutil.ints.IntList> fadeColors, Optional<Boolean> hasTrail, Optional<Boolean> hasTwinkle) SetFireworksFunction(List<LootItemCondition> predicates, Optional<ListOperation.StandAlone<FireworkExplosion>> explosions, Optional<Integer> flightDuration) privateSetInstrumentFunction(List<LootItemCondition> predicates, TagKey<Instrument> options) privateSetItemCountFunction(List<LootItemCondition> predicates, NumberProvider count, boolean add) privateSetItemDamageFunction(List<LootItemCondition> predicates, NumberProvider damage, boolean add) SetItemFunction(List<LootItemCondition> predicates, Holder<Item> item) SetLoreFunction(List<LootItemCondition> predicates, List<Component> lore, ListOperation mode, Optional<LootContext.EntityTarget> resolutionContext) privateSetNameFunction(List<LootItemCondition> predicates, Optional<Component> name, Optional<LootContext.EntityTarget> resolutionContext, SetNameFunction.Target target) privateSetOminousBottleAmplifierFunction(List<LootItemCondition> predicates, NumberProvider amplifier) privateSetPotionFunction(List<LootItemCondition> predicates, Holder<Potion> potion) privateSetRandomDyesFunction(List<LootItemCondition> predicates, NumberProvider numberOfDyes) privateSetRandomPotionFunction(List<LootItemCondition> predicates, Optional<HolderSet<Potion>> options) privateSetStewEffectFunction(List<LootItemCondition> predicates, List<SetStewEffectFunction.EffectEntry> effects) SetWritableBookPagesFunction(List<LootItemCondition> predicates, List<Filterable<String>> pages, ListOperation pageOperation) SetWrittenBookPagesFunction(List<LootItemCondition> predicates, List<Filterable<Component>> pages, ListOperation pageOperation) privateSmeltItemFunction(List<LootItemCondition> predicates, boolean useInputCount) ToggleTooltips(List<LootItemCondition> predicates, Map<DataComponentType<?>, 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 recordA LootItemCondition that checks theagainst aninvalid reference
day time
IntRangeafter applying an optional modulo division.final 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 TypeFieldDescriptionstatic 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> terms) protected LootItemConditionAnyOfCondition.Builder.create(List<LootItemCondition> terms) protected abstract LootItemConditionCompositeLootItemCondition.Builder.create(List<LootItemCondition> terms) 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 TypeMethodDescriptionstatic com.mojang.serialization.MapCodec<? extends LootItemCondition> LootItemConditions.bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LootItemCondition>> registry) com.mojang.serialization.MapCodec<? extends LootItemCondition> LootItemCondition.codec()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> terms) static com.mojang.serialization.MapCodec<? extends LootItemCondition> LootItemConditions.bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LootItemCondition>> registry) static LootItemCondition.BuilderConditionReference.conditionReference(ResourceKey<LootItemCondition> name) protected LootItemConditionAllOfCondition.Builder.create(List<LootItemCondition> terms) protected LootItemConditionAnyOfCondition.Builder.create(List<LootItemCondition> terms) protected abstract LootItemConditionCompositeLootItemCondition.Builder.create(List<LootItemCondition> terms) 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) 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 LootItemConditionModifierConstructorDescriptionprivateAllOfCondition(List<LootItemCondition> terms) privateAnyOfCondition(List<LootItemCondition> terms) protectedCompositeLootItemCondition(List<LootItemCondition> terms, Predicate<LootContext> composedPredicate) Creates an instance of aConditionReferencerecord 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 LootItemConditionMethods in net.neoforged.neoforge.common.loot that return types with arguments of type LootItemConditionModifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends LootItemCondition> CanItemPerformAbility.codec()com.mojang.serialization.MapCodec<? extends LootItemCondition> LootTableIdCondition.codec()Constructors in net.neoforged.neoforge.common.loot with parameters of type LootItemConditionModifierConstructorDescriptionAddTableLootModifier(LootItemCondition[] conditionsIn, ResourceKey<LootTable> table) protectedLootModifier(LootItemCondition[] conditionsIn) Constructs a LootModifier.