Uses of Interface
net.minecraft.world.level.storage.loot.predicates.LootItemCondition
Package
Description
Classes for NeoForge's own data generation.
-
Uses of LootItemCondition in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final List<LootItemCondition>
ContextAwarePredicate.conditions
Modifier and TypeMethodDescriptionstatic ContextAwarePredicate
ContextAwarePredicate.create
(LootItemCondition... p_286844_) ModifierConstructorDescription(package private)
ContextAwarePredicate
(List<LootItemCondition> p_298428_) -
Uses of LootItemCondition in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic LootItemCondition
ResourceLocationArgument.getPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_107002_, String p_107003_) -
Uses of LootItemCondition in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static boolean
ExecuteCommand.checkCustomPredicate
(CommandSourceStack p_137105_, LootItemCondition p_137106_) -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot
Modifier 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
-
Uses of LootItemCondition in net.minecraft.world.level.storage.loot.entries
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder<LootItemCondition>
LootPoolEntryContainer.Builder.conditions
protected final List<LootItemCondition>
LootPoolEntryContainer.conditions
Modifier 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> p_299092_) 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> p_299239_) Modifier and TypeMethodDescriptionLootPoolSingletonContainer.EntryConstructor.build
(int p_79727_, int p_79728_, List<LootItemCondition> p_298278_, List<LootItemFunction> p_298826_) ModifierConstructorDescriptionprivate
DynamicLoot
(ResourceLocation p_79465_, int p_79466_, int p_79467_, List<LootItemCondition> p_299033_, List<LootItemFunction> p_298474_) private
EmptyLootItem
(int p_79519_, int p_79520_, List<LootItemCondition> p_298942_, List<LootItemFunction> p_298310_) private
LootItem
(Holder<Item> p_298423_, int p_79567_, int p_79568_, List<LootItemCondition> p_299249_, List<LootItemFunction> p_299128_) protected
LootPoolEntryContainer
(List<LootItemCondition> p_299002_) protected
LootPoolSingletonContainer
(int p_79681_, int p_79682_, List<LootItemCondition> p_298562_, List<LootItemFunction> p_299276_) private
LootTableReference
(ResourceLocation p_79756_, int p_79757_, int p_79758_, List<LootItemCondition> p_298340_, List<LootItemFunction> p_298824_) private
TagEntry
(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
Modifier 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
Modifier 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> p_298453_) protected List<LootItemCondition>
LootItemConditionalFunction.Builder.getConditions()
Modifier and TypeMethodDescriptionprotected static LootItemConditionalFunction.Builder<?>
LootItemConditionalFunction.simpleBuilder
(Function<List<LootItemCondition>, LootItemFunction> p_80684_) ModifierConstructorDescriptionprivate
ApplyBonusCount
(List<LootItemCondition> p_298532_, Holder<Enchantment> p_298797_, ApplyBonusCount.Formula p_79905_) private
ApplyExplosionDecay
(List<LootItemCondition> p_298289_) private
CopyBlockState
(List<LootItemCondition> p_298279_, Holder<Block> p_299047_, List<String> p_298632_) (package private)
CopyBlockState
(List<LootItemCondition> p_298625_, Holder<Block> p_298940_, Set<Property<?>> p_80052_) private
CopyNameFunction
(List<LootItemCondition> p_298700_, CopyNameFunction.NameSource p_80178_) (package private)
CopyNbtFunction
(List<LootItemCondition> p_165177_, NbtProvider p_165176_, List<CopyNbtFunction.CopyOperation> p_298837_) DummyBuilder
(Function<List<LootItemCondition>, LootItemFunction> p_80702_) (package private)
EnchantRandomlyFunction
(List<LootItemCondition> p_299014_, Optional<HolderSet<Enchantment>> p_298965_) (package private)
EnchantWithLevelsFunction
(List<LootItemCondition> p_298580_, NumberProvider p_165194_, boolean p_165195_) (package private)
ExplorationMapFunction
(List<LootItemCondition> p_298451_, TagKey<Structure> p_210653_, MapDecoration.Type p_210654_, byte p_210655_, int p_210656_, boolean p_210657_) FillPlayerHead
(List<LootItemCondition> p_298265_, LootContext.EntityTarget p_80605_) private
FunctionReference
(List<LootItemCondition> p_298661_, ResourceLocation p_279246_) private
LimitCount
(List<LootItemCondition> p_299132_, IntRange p_165214_) (package private)
LootingEnchantFunction
(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_) protected
LootItemConditionalFunction
(List<LootItemCondition> p_298706_) (package private)
SetAttributesFunction
(List<LootItemCondition> p_80834_, List<SetAttributesFunction.Modifier> p_298646_) (package private)
SetBannerPatternFunction
(List<LootItemCondition> p_165276_, List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>> p_299284_, boolean p_165277_) (package private)
SetContainerContents
(List<LootItemCondition> p_193035_, Holder<BlockEntityType<?>> p_298738_, List<LootPoolEntryContainer> p_298300_) private
SetContainerLootTable
(List<LootItemCondition> p_298290_, ResourceLocation p_193046_, long p_193047_, Holder<BlockEntityType<?>> p_298416_) (package private)
SetEnchantmentsFunction
(List<LootItemCondition> p_299192_, Map<Holder<Enchantment>, NumberProvider> p_165338_, boolean p_165339_) private
SetInstrumentFunction
(List<LootItemCondition> p_298993_, TagKey<Instrument> p_231009_) private
SetItemCountFunction
(List<LootItemCondition> p_299158_, NumberProvider p_165410_, boolean p_165411_) private
SetItemDamageFunction
(List<LootItemCondition> p_298394_, NumberProvider p_165428_, boolean p_165429_) SetLoreFunction
(List<LootItemCondition> p_81085_, boolean p_81084_, List<Component> p_298633_, Optional<LootContext.EntityTarget> p_298623_) private
SetNameFunction
(List<LootItemCondition> p_299241_, Optional<Component> p_298804_, Optional<LootContext.EntityTarget> p_298545_) private
SetNbtFunction
(List<LootItemCondition> p_298385_, CompoundTag p_81177_) private
SetPotionFunction
(List<LootItemCondition> p_299010_, Holder<Potion> p_298587_) (package private)
SetStewEffectFunction
(List<LootItemCondition> p_298938_, List<SetStewEffectFunction.EffectEntry> p_298439_) private
SmeltItemFunction
(List<LootItemCondition> p_299162_) -
Uses of LootItemCondition in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeClassDescriptionclass
class
final record
class
final record
final record
final record
class
final record
final record
final record
final record
class
final record
final record
final record
final record
final record
final record
Modifier and TypeFieldDescriptionprivate final LootItemCondition
InvertedLootItemCondition.term
The field for theterm
record component.Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<? extends LootItemCondition>
LootItemConditionType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec<LootItemCondition>
LootItemConditions.CODEC
private final com.google.common.collect.ImmutableList.Builder<LootItemCondition>
CompositeLootItemCondition.Builder.terms
protected final List<LootItemCondition>
CompositeLootItemCondition.terms
private static final com.mojang.serialization.Codec<LootItemCondition>
LootItemConditions.TYPED_CODEC
Modifier 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> p_299194_) InvertedLootItemCondition.term()
Returns the value of theterm
record component.Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends LootItemCondition>
LootItemConditionType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionstatic AllOfCondition
AllOfCondition.allOf
(List<LootItemCondition> p_298400_) 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> p_299194_) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.Codec<T>CompositeLootItemCondition.createCodec
(Function<List<LootItemCondition>, T> p_298515_) protected static <T extends CompositeLootItemCondition>
com.mojang.serialization.Codec<T>CompositeLootItemCondition.createInlineCodec
(Function<List<LootItemCondition>, T> p_298806_) private static LootItemConditionType
LootItemConditions.register
(String p_81832_, com.mojang.serialization.Codec<? extends LootItemCondition> p_298549_) ModifierConstructorDescriptionCreates an instance of aInvertedLootItemCondition
record class.ModifierConstructorDescription(package private)
AllOfCondition
(List<LootItemCondition> p_299216_) (package private)
AnyOfCondition
(List<LootItemCondition> p_299191_) protected
CompositeLootItemCondition
(List<LootItemCondition> p_298458_, Predicate<LootContext> p_286771_) LootItemConditionType
(com.mojang.serialization.Codec<? extends LootItemCondition> codec) Creates an instance of aLootItemConditionType
record class. -
Uses of LootItemCondition in net.neoforged.neoforge.common.data.internal
Modifier and TypeFieldDescriptionprivate final List<Function<LootItemCondition,
LootItemCondition.Builder>> NeoForgeLootTableProvider.conditionReplacers
Modifier and TypeMethodDescriptionprivate boolean
NeoForgeLootTableProvider.replaceCondition
(LootItemCondition lootCondition, Consumer<LootItemCondition.Builder> poolBuilder) Modifier and TypeMethodDescriptionprivate void
NeoForgeLootTableProvider.replaceLootItemCondition
(Function<LootItemCondition, LootItemCondition.Builder> replacer) -
Uses of LootItemCondition in net.neoforged.neoforge.common.loot
Modifier and TypeClassDescriptionclass
This LootItemCondition "neoforge:can_tool_perform_action" can be used to check if a tool can perform a given ToolAction.class
ModifierConstructorDescriptionprotected
AddTableLootModifier
(LootItemCondition[] conditionsIn, ResourceLocation table) protected
LootModifier
(LootItemCondition[] conditionsIn) Constructs a LootModifier. -
Uses of LootItemCondition in net.neoforged.neoforge.debug.loot
ModifierConstructorDescriptionDungeonLootEnhancerModifier
(LootItemCondition[] conditionsIn, int multiplicationFactor) SilkTouchTestModifier
(LootItemCondition[] conditionsIn) SmeltingEnchantmentModifier
(LootItemCondition[] conditionsIn) WheatSeedsConverterModifier
(LootItemCondition[] conditionsIn, int numSeeds, Item itemCheck, Item reward) -
Uses of LootItemCondition in net.neoforged.testframework.condition