Uses of Class
net.minecraft.world.level.storage.loot.LootContext
Packages that use LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>EntityPredicate.Composite.compositePredicatesMethods in net.minecraft.advancements.critereon that return LootContextModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createContext(ServerPlayer p_36617_, Entity p_36618_) Methods in net.minecraft.advancements.critereon with parameters of type LootContextModifier and TypeMethodDescriptionbooleanBredAnimalsTrigger.TriggerInstance.matches(LootContext p_18676_, LootContext p_18677_, LootContext p_18678_) booleanCuredZombieVillagerTrigger.TriggerInstance.matches(LootContext p_24300_, LootContext p_24301_) booleanEffectsChangedTrigger.TriggerInstance.matches(ServerPlayer p_149275_, LootContext p_149276_) booleanEntityPredicate.Composite.matches(LootContext p_36682_) booleanFishingRodHookedTrigger.TriggerInstance.matches(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) booleanItemPickedUpByEntityTrigger.TriggerInstance.matches(ServerPlayer p_44388_, ItemStack p_44389_, LootContext p_44390_) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) booleanLightningStrikeTrigger.TriggerInstance.matches(LootContext p_153419_, List<LootContext> p_153420_) booleanPlayerHurtEntityTrigger.TriggerInstance.matches(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) booleanPlayerInteractTrigger.TriggerInstance.matches(ItemStack p_61522_, LootContext p_61523_) booleanSummonedEntityTrigger.TriggerInstance.matches(LootContext p_68280_) booleanTameAnimalTrigger.TriggerInstance.matches(LootContext p_68853_) booleanTargetBlockTrigger.TriggerInstance.matches(LootContext p_70242_, Vec3 p_70243_, int p_70244_) booleanTradeTrigger.TriggerInstance.matches(LootContext p_70985_, ItemStack p_70986_) Method parameters in net.minecraft.advancements.critereon with type arguments of type LootContextModifier and TypeMethodDescriptionbooleanChanneledLightningTrigger.TriggerInstance.matches(Collection<? extends LootContext> p_21745_) booleanKilledByCrossbowTrigger.TriggerInstance.matches(Collection<LootContext> p_46898_, int p_46899_) booleanLightningStrikeTrigger.TriggerInstance.matches(LootContext p_153419_, List<LootContext> p_153420_) -
Uses of LootContext in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type LootContextModifier and TypeMethodDescriptionprivate static intLootCommand.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
Fields in net.minecraft.world.level.storage.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>PredicateManager.CompositePredicate.composedPredicateprivate final Predicate<LootContext>LootPool.compositeConditionprivate final BiFunction<ItemStack,LootContext, ItemStack> ItemModifierManager.FunctionSequence.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.compositeFunctionMethods in net.minecraft.world.level.storage.loot that return LootContextMethods in net.minecraft.world.level.storage.loot with parameters of type LootContextModifier and TypeMethodDescriptionvoidLootContext.DynamicDrop.add(LootContext p_78988_, Consumer<ItemStack> p_78989_) private voidLootPool.addRandomItem(Consumer<ItemStack> p_79059_, LootContext p_79060_) voidLootPool.addRandomItems(Consumer<ItemStack> p_79054_, LootContext p_79055_) intIntRange.IntLimiter.apply(LootContext p_165060_, int p_165061_) ItemModifierManager.FunctionSequence.apply(ItemStack p_165119_, LootContext p_165120_) intIntRange.clamp(LootContext p_165015_, int p_165016_) voidLootTable.fill(Container p_79124_, LootContext p_79125_) LootTable.getRandomItems(LootContext p_79130_) voidLootTable.getRandomItems(LootContext p_79149_, Consumer<ItemStack> p_79150_) Deprecated.voidLootTable.getRandomItemsRaw(LootContext p_79132_, Consumer<ItemStack> p_79133_) booleanIntRange.IntChecker.test(LootContext p_165057_, int p_165058_) booleanIntRange.test(LootContext p_165029_, int p_165030_) final booleanPredicateManager.CompositePredicate.test(LootContext p_79264_) Constructors in net.minecraft.world.level.storage.loot with parameters of type LootContext -
Uses of LootContext in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootPoolEntryContainer.compositeCondition(package private) final BiFunction<ItemStack,LootContext, ItemStack> LootPoolSingletonContainer.compositeFunctionMethods in net.minecraft.world.level.storage.loot.entries with parameters of type LootContextModifier and TypeMethodDescriptionprotected final booleanLootPoolEntryContainer.canRun(LootContext p_79640_) voidDynamicLoot.createItemStack(Consumer<ItemStack> p_79481_, LootContext p_79482_) voidEmptyLootItem.createItemStack(Consumer<ItemStack> p_79531_, LootContext p_79532_) voidLootItem.createItemStack(Consumer<ItemStack> p_79590_, LootContext p_79591_) voidLootPoolEntry.createItemStack(Consumer<ItemStack> p_79633_, LootContext p_79634_) protected abstract voidLootPoolSingletonContainer.createItemStack(Consumer<ItemStack> p_79691_, LootContext p_79692_) voidLootTableReference.createItemStack(Consumer<ItemStack> p_79774_, LootContext p_79775_) voidTagEntry.createItemStack(Consumer<ItemStack> p_79854_, LootContext p_79855_) booleanComposableEntryContainer.expand(LootContext p_79426_, Consumer<LootPoolEntry> p_79427_) final booleanCompositeEntryBase.expand(LootContext p_79439_, Consumer<LootPoolEntry> p_79440_) booleanLootPoolSingletonContainer.expand(LootContext p_79694_, Consumer<LootPoolEntry> p_79695_) booleanTagEntry.expand(LootContext p_79861_, Consumer<LootPoolEntry> p_79862_) private booleanTagEntry.expandTag(LootContext p_79846_, Consumer<LootPoolEntry> p_79847_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootItemConditionalFunction.compositePredicatesstatic final BiFunction<ItemStack,LootContext, ItemStack> LootItemFunctions.IDENTITYMethods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type LootContextModifier and TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext, ItemStack> LootItemFunctions.compose(BiFunction<ItemStack, LootContext, ItemStack>[] p_80771_) Methods in net.minecraft.world.level.storage.loot.functions with parameters of type LootContextModifier and TypeMethodDescriptionfinal ItemStackLootItemConditionalFunction.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 ItemStackCopyBlockState.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 ItemStackLootItemConditionalFunction.run(ItemStack p_80679_, LootContext p_80680_) SetAttributesFunction.run(ItemStack p_80840_, LootContext p_80841_) protected ItemStackSetBannerPatternFunction.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_) Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootContextModifier 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
Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>AlternativeLootItemCondition.composedPredicateMethods in net.minecraft.world.level.storage.loot.predicates with parameters of type LootContextModifier and TypeMethodDescriptionprotected booleanEntityHasScoreCondition.hasScore(LootContext p_165491_, Entity p_165492_, Scoreboard p_165493_, String p_165494_, IntRange p_165495_) final booleanAlternativeLootItemCondition.test(LootContext p_81476_) booleanBonusLevelTableCondition.test(LootContext p_81521_) booleanConditionReference.test(LootContext p_81558_) booleanDamageSourceCondition.test(LootContext p_81592_) booleanEntityHasScoreCondition.test(LootContext p_81631_) booleanExplosionCondition.test(LootContext p_81659_) final booleanInvertedLootItemCondition.test(LootContext p_81689_) booleanLocationCheck.test(LootContext p_81731_) booleanLootItemBlockStatePropertyCondition.test(LootContext p_81772_) booleanLootItemEntityPropertyCondition.test(LootContext p_81871_) booleanLootItemKilledByPlayerCondition.test(LootContext p_81899_) booleanLootItemRandomChanceCondition.test(LootContext p_81930_) booleanLootItemRandomChanceWithLootingCondition.test(LootContext p_81967_) booleanMatchTool.test(LootContext p_82000_) booleanTimeCheck.test(LootContext p_82033_) booleanValueCheckCondition.test(LootContext p_165527_) booleanWeatherCheck.test(LootContext p_82066_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.nbt
Methods in net.minecraft.world.level.storage.loot.providers.nbt with parameters of type LootContextModifier 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
Methods in net.minecraft.world.level.storage.loot.providers.number with parameters of type LootContextModifier and TypeMethodDescriptionfloatBinomialDistributionGenerator.getFloat(LootContext p_165666_) floatConstantValue.getFloat(LootContext p_165695_) floatNumberProvider.getFloat(LootContext p_165730_) floatScoreboardValue.getFloat(LootContext p_165758_) floatUniformGenerator.getFloat(LootContext p_165787_) intBinomialDistributionGenerator.getInt(LootContext p_165663_) default intNumberProvider.getInt(LootContext p_165729_) intUniformGenerator.getInt(LootContext p_165784_) -
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.score
Methods in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContextModifier and TypeMethodDescriptionContextScoreboardNameProvider.getScoreboardName(LootContext p_165810_) FixedScoreboardNameProvider.getScoreboardName(LootContext p_165845_) ScoreboardNameProvider.getScoreboardName(LootContext p_165867_) -
Uses of LootContext in net.minecraftforge.common
Methods in net.minecraftforge.common with parameters of type LootContextModifier 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
Fields in net.minecraftforge.common.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootModifier.combinedConditionsMethods in net.minecraftforge.common.loot with parameters of type LootContextModifier 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).booleanCanToolPerformAction.test(LootContext lootContext) booleanLootTableIdCondition.test(LootContext lootContext) -
Uses of LootContext in net.minecraftforge.debug.gameplay.loot
Methods in net.minecraftforge.debug.gameplay.loot with parameters of type LootContextModifier 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 ItemStackGlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt(ItemStack stack, LootContext context)
ForgeHooks.modifyLoot(ResourceLocation, List, LootContext)instead.