Uses of Class
net.minecraft.world.level.storage.loot.LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
EntityPredicate.Composite.compositePredicates
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createContext
(ServerPlayer p_36617_, Entity p_36618_) Modifier and TypeMethodDescriptionboolean
BredAnimalsTrigger.TriggerInstance.matches
(LootContext p_18676_, LootContext p_18677_, LootContext p_18678_) boolean
CuredZombieVillagerTrigger.TriggerInstance.matches
(LootContext p_24300_, LootContext p_24301_) boolean
EffectsChangedTrigger.TriggerInstance.matches
(ServerPlayer p_149275_, LootContext p_149276_) boolean
EntityPredicate.Composite.matches
(LootContext p_36682_) boolean
FishingRodHookedTrigger.TriggerInstance.matches
(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) boolean
ItemPickedUpByEntityTrigger.TriggerInstance.matches
(ServerPlayer p_44388_, ItemStack p_44389_, LootContext p_44390_) boolean
KilledTrigger.TriggerInstance.matches
(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) boolean
LightningStrikeTrigger.TriggerInstance.matches
(LootContext p_153419_, List<LootContext> p_153420_) boolean
PlayerHurtEntityTrigger.TriggerInstance.matches
(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) boolean
PlayerInteractTrigger.TriggerInstance.matches
(ItemStack p_61522_, LootContext p_61523_) boolean
SummonedEntityTrigger.TriggerInstance.matches
(LootContext p_68280_) boolean
TameAnimalTrigger.TriggerInstance.matches
(LootContext p_68853_) boolean
TargetBlockTrigger.TriggerInstance.matches
(LootContext p_70242_, Vec3 p_70243_, int p_70244_) boolean
TradeTrigger.TriggerInstance.matches
(LootContext p_70985_, ItemStack p_70986_) Modifier and TypeMethodDescriptionboolean
ChanneledLightningTrigger.TriggerInstance.matches
(Collection<? extends LootContext> p_21745_) boolean
KilledByCrossbowTrigger.TriggerInstance.matches
(Collection<LootContext> p_46898_, int p_46899_) boolean
LightningStrikeTrigger.TriggerInstance.matches
(LootContext p_153419_, List<LootContext> p_153420_) -
Uses of LootContext in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
LootCommand.drop
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137922_, ResourceLocation p_137923_, LootContext p_137924_, LootCommand.DropConsumer p_137925_) -
Uses of LootContext in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
PredicateManager.CompositePredicate.composedPredicate
private final Predicate<LootContext>
LootPool.compositeCondition
private final BiFunction<ItemStack,
LootContext, ItemStack> ItemModifierManager.FunctionSequence.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootPool.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootTable.compositeFunction
Modifier and TypeMethodDescriptionvoid
LootContext.DynamicDrop.add
(LootContext p_78988_, Consumer<ItemStack> p_78989_) private void
LootPool.addRandomItem
(Consumer<ItemStack> p_79059_, LootContext p_79060_) void
LootPool.addRandomItems
(Consumer<ItemStack> p_79054_, LootContext p_79055_) int
IntRange.IntLimiter.apply
(LootContext p_165060_, int p_165061_) ItemModifierManager.FunctionSequence.apply
(ItemStack p_165119_, LootContext p_165120_) int
IntRange.clamp
(LootContext p_165015_, int p_165016_) void
LootTable.fill
(Container p_79124_, LootContext p_79125_) LootTable.getRandomItems
(LootContext p_79130_) void
LootTable.getRandomItems
(LootContext p_79149_, Consumer<ItemStack> p_79150_) Deprecated.void
LootTable.getRandomItemsRaw
(LootContext p_79132_, Consumer<ItemStack> p_79133_) boolean
IntRange.IntChecker.test
(LootContext p_165057_, int p_165058_) boolean
IntRange.test
(LootContext p_165029_, int p_165030_) final boolean
PredicateManager.CompositePredicate.test
(LootContext p_79264_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.entries
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
LootPoolEntryContainer.compositeCondition
(package private) final BiFunction<ItemStack,
LootContext, ItemStack> LootPoolSingletonContainer.compositeFunction
Modifier and TypeMethodDescriptionprotected final boolean
LootPoolEntryContainer.canRun
(LootContext p_79640_) void
DynamicLoot.createItemStack
(Consumer<ItemStack> p_79481_, LootContext p_79482_) void
EmptyLootItem.createItemStack
(Consumer<ItemStack> p_79531_, LootContext p_79532_) void
LootItem.createItemStack
(Consumer<ItemStack> p_79590_, LootContext p_79591_) void
LootPoolEntry.createItemStack
(Consumer<ItemStack> p_79633_, LootContext p_79634_) protected abstract void
LootPoolSingletonContainer.createItemStack
(Consumer<ItemStack> p_79691_, LootContext p_79692_) void
LootTableReference.createItemStack
(Consumer<ItemStack> p_79774_, LootContext p_79775_) void
TagEntry.createItemStack
(Consumer<ItemStack> p_79854_, LootContext p_79855_) boolean
ComposableEntryContainer.expand
(LootContext p_79426_, Consumer<LootPoolEntry> p_79427_) final boolean
CompositeEntryBase.expand
(LootContext p_79439_, Consumer<LootPoolEntry> p_79440_) boolean
LootPoolSingletonContainer.expand
(LootContext p_79694_, Consumer<LootPoolEntry> p_79695_) boolean
TagEntry.expand
(LootContext p_79861_, Consumer<LootPoolEntry> p_79862_) private boolean
TagEntry.expandTag
(LootContext p_79846_, Consumer<LootPoolEntry> p_79847_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
LootItemConditionalFunction.compositePredicates
static final BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.IDENTITY
Modifier and TypeMethodDescriptionstatic BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.compose
(BiFunction<ItemStack, LootContext, ItemStack>[] p_80771_) Modifier and TypeMethodDescriptionfinal ItemStack
LootItemConditionalFunction.apply
(ItemStack p_80689_, LootContext p_80690_) static UnaryOperator<Component>
SetNameFunction.createResolver
(LootContext p_81140_, LootContext.EntityTarget p_81141_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) ApplyBonusCount.run
(ItemStack p_79913_, LootContext p_79914_) ApplyExplosionDecay.run
(ItemStack p_80034_, LootContext p_80035_) protected ItemStack
CopyBlockState.run
(ItemStack p_80060_, LootContext p_80061_) CopyNameFunction.run
(ItemStack p_80185_, LootContext p_80186_) CopyNbtFunction.run
(ItemStack p_80250_, LootContext p_80251_) EnchantRandomlyFunction.run
(ItemStack p_80429_, LootContext p_80430_) EnchantWithLevelsFunction.run
(ItemStack p_80483_, LootContext p_80484_) ExplorationMapFunction.run
(ItemStack p_80547_, LootContext p_80548_) FillPlayerHead.run
(ItemStack p_80608_, LootContext p_80609_) LimitCount.run
(ItemStack p_80644_, LootContext p_80645_) LootingEnchantFunction.run
(ItemStack p_80789_, LootContext p_80790_) protected abstract ItemStack
LootItemConditionalFunction.run
(ItemStack p_80679_, LootContext p_80680_) SetAttributesFunction.run
(ItemStack p_80840_, LootContext p_80841_) protected ItemStack
SetBannerPatternFunction.run
(ItemStack p_165280_, LootContext p_165281_) SetContainerContents.run
(ItemStack p_80911_, LootContext p_80912_) SetContainerLootTable.run
(ItemStack p_80967_, LootContext p_80968_) SetEnchantmentsFunction.run
(ItemStack p_165346_, LootContext p_165347_) SetItemCountFunction.run
(ItemStack p_81006_, LootContext p_81007_) SetItemDamageFunction.run
(ItemStack p_81048_, LootContext p_81049_) SetLoreFunction.run
(ItemStack p_81089_, LootContext p_81090_) SetNameFunction.run
(ItemStack p_81137_, LootContext p_81138_) SetNbtFunction.run
(ItemStack p_81183_, LootContext p_81184_) SetPotionFunction.run
(ItemStack p_193073_, LootContext p_193074_) SetStewEffectFunction.run
(ItemStack p_81223_, LootContext p_81224_) SmeltItemFunction.run
(ItemStack p_81268_, LootContext p_81269_) Modifier and TypeMethodDescriptionLootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
AlternativeLootItemCondition.composedPredicate
Modifier and TypeMethodDescriptionprotected boolean
EntityHasScoreCondition.hasScore
(LootContext p_165491_, Entity p_165492_, Scoreboard p_165493_, String p_165494_, IntRange p_165495_) final boolean
AlternativeLootItemCondition.test
(LootContext p_81476_) boolean
BonusLevelTableCondition.test
(LootContext p_81521_) boolean
ConditionReference.test
(LootContext p_81558_) boolean
DamageSourceCondition.test
(LootContext p_81592_) boolean
EntityHasScoreCondition.test
(LootContext p_81631_) boolean
ExplosionCondition.test
(LootContext p_81659_) final boolean
InvertedLootItemCondition.test
(LootContext p_81689_) boolean
LocationCheck.test
(LootContext p_81731_) boolean
LootItemBlockStatePropertyCondition.test
(LootContext p_81772_) boolean
LootItemEntityPropertyCondition.test
(LootContext p_81871_) boolean
LootItemKilledByPlayerCondition.test
(LootContext p_81899_) boolean
LootItemRandomChanceCondition.test
(LootContext p_81930_) boolean
LootItemRandomChanceWithLootingCondition.test
(LootContext p_81967_) boolean
MatchTool.test
(LootContext p_82000_) boolean
TimeCheck.test
(LootContext p_82033_) boolean
ValueCheckCondition.test
(LootContext p_165527_) boolean
WeatherCheck.test
(LootContext p_82066_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.nbt
Modifier and TypeMethodDescriptionContextNbtProvider.get
(LootContext p_165573_) ContextNbtProvider.Getter.get
(LootContext p_165591_) NbtProvider.get
(LootContext p_165622_) StorageNbtProvider.get
(LootContext p_165636_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.number
Modifier and TypeMethodDescriptionfloat
BinomialDistributionGenerator.getFloat
(LootContext p_165666_) float
ConstantValue.getFloat
(LootContext p_165695_) float
NumberProvider.getFloat
(LootContext p_165730_) float
ScoreboardValue.getFloat
(LootContext p_165758_) float
UniformGenerator.getFloat
(LootContext p_165787_) int
BinomialDistributionGenerator.getInt
(LootContext p_165663_) default int
NumberProvider.getInt
(LootContext p_165729_) int
UniformGenerator.getInt
(LootContext p_165784_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.score
Modifier and TypeMethodDescriptionContextScoreboardNameProvider.getScoreboardName
(LootContext p_165810_) FixedScoreboardNameProvider.getScoreboardName
(LootContext p_165845_) ScoreboardNameProvider.getScoreboardName
(LootContext p_165867_) -
Uses of LootContext in net.minecraftforge.common
Modifier and TypeMethodDescriptionForgeHooks.modifyLoot
(List<ItemStack> list, LootContext context) Deprecated.ForgeHooks.modifyLoot
(ResourceLocation lootTableId, List<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed. -
Uses of LootContext in net.minecraftforge.common.loot
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
LootModifier.combinedConditions
Modifier and TypeMethodDescriptionIGlobalLootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.LootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) LootModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).boolean
CanToolPerformAction.test
(LootContext lootContext) boolean
LootTableIdCondition.test
(LootContext lootContext) -
Uses of LootContext in net.minecraftforge.debug.gameplay.loot
Modifier and TypeMethodDescriptionGlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SilkTouchTestModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) private static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt
(ItemStack stack, LootContext context)
ForgeHooks.modifyLoot(ResourceLocation, List, LootContext)
instead.