Uses of Class
net.minecraft.world.level.storage.loot.LootContext
Packages that use LootContext
Package
Description
- 
Uses of LootContext in net.minecraft.advancements.critereonFields in net.minecraft.advancements.critereon with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>ContextAwarePredicate.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 TypeMethodDescriptionprivate static booleanBredAnimalsTrigger.TriggerInstance.matches(Optional<ContextAwarePredicate> p_298925_, LootContext p_298317_) booleanBredAnimalsTrigger.TriggerInstance.matches(LootContext p_18676_, LootContext p_18677_, LootContext p_18678_) booleanContextAwarePredicate.matches(LootContext p_286260_) booleanCuredZombieVillagerTrigger.TriggerInstance.matches(LootContext p_24300_, LootContext p_24301_) booleanEffectsChangedTrigger.TriggerInstance.matches(ServerPlayer p_149275_, LootContext p_149276_) booleanFishingRodHookedTrigger.TriggerInstance.matches(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) booleanItemUsedOnLocationTrigger.TriggerInstance.matches(LootContext p_286800_) booleanKilledTrigger.TriggerInstance.matches(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) booleanLightningStrikeTrigger.TriggerInstance.matches(LootContext p_153419_, List<LootContext> p_153420_) booleanPickedUpItemTrigger.TriggerInstance.matches(ServerPlayer p_221323_, ItemStack p_221324_, LootContext p_221325_) 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.world.level.storage.lootFields in net.minecraft.world.level.storage.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootPool.compositeConditionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.compositeFunctionMethods in net.minecraft.world.level.storage.loot that return LootContextModifier and TypeMethodDescriptionLootContext.Builder.create(Optional<ResourceLocation> p_298622_) Methods in net.minecraft.world.level.storage.loot with parameters of type LootContextModifier and TypeMethodDescriptionprivate 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_) intIntRange.clamp(LootContext p_165015_, int p_165016_) private it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>LootTable.getRandomItems(LootContext p_230923_) voidLootTable.getRandomItems(LootContext p_79149_, Consumer<ItemStack> p_79150_) voidLootTable.getRandomItemsRaw(LootContext p_79132_, Consumer<ItemStack> p_79133_) Deprecated.booleanIntRange.IntChecker.test(LootContext p_165057_, int p_165058_) booleanIntRange.test(LootContext p_165029_, int p_165030_) Constructors in net.minecraft.world.level.storage.loot with parameters of type LootContext
- 
Uses of LootContext in net.minecraft.world.level.storage.loot.entriesFields 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.functionsFields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,LootContext, ItemStack> SequenceFunction.compositeFunctionprivate 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(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298851_) Methods in net.minecraft.world.level.storage.loot.functions with parameters of type LootContextModifier and TypeMethodDescriptionfinal ItemStackLootItemConditionalFunction.apply(ItemStack p_80689_, LootContext p_80690_) SequenceFunction.apply(ItemStack p_299268_, LootContext p_298221_) 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_) protected ItemStackFunctionReference.run(ItemStack p_279458_, LootContext p_279370_) 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_) SetInstrumentFunction.run(ItemStack p_231017_, LootContext p_231018_) 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 TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext, ItemStack> LootItemFunctions.compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298851_) LootItemFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) 
- 
Uses of LootContext in net.minecraft.world.level.storage.loot.predicatesFields in net.minecraft.world.level.storage.loot.predicates with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>CompositeLootItemCondition.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_) booleanBonusLevelTableCondition.test(LootContext p_81521_) final booleanCompositeLootItemCondition.test(LootContext p_286298_) booleanConditionReference.test(LootContext p_81558_) booleanDamageSourceCondition.test(LootContext p_81592_) booleanEntityHasScoreCondition.test(LootContext p_81631_) booleanExplosionCondition.test(LootContext p_81659_) 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_) Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type LootContextModifierConstructorDescriptionprotectedCompositeLootItemCondition(List<LootItemCondition> p_298458_, Predicate<LootContext> p_286771_) 
- 
Uses of LootContext in net.minecraft.world.level.storage.loot.providers.nbtMethods 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.numberMethods 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.scoreMethods in net.minecraft.world.level.storage.loot.providers.score with parameters of type LootContextModifier and TypeMethodDescriptionContextScoreboardNameProvider.getScoreHolder(LootContext p_313828_) FixedScoreboardNameProvider.getScoreHolder(LootContext p_313943_) ScoreboardNameProvider.getScoreHolder(LootContext p_165867_) 
- 
Uses of LootContext in net.neoforged.neoforge.commonMethods in net.neoforged.neoforge.common with parameters of type LootContextModifier and TypeMethodDescriptionCommonHooks.modifyLoot(List<ItemStack> list, LootContext context) Deprecated.static it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>CommonHooks.modifyLoot(ResourceLocation lootTableId, it.unimi.dsi.fastutil.objects.ObjectArrayList<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.neoforged.neoforge.common.lootFields in net.neoforged.neoforge.common.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootModifier.combinedConditionsMethods in net.neoforged.neoforge.common.loot with parameters of type LootContextModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>IGlobalLootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.final it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>LootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>AddTableLootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected abstract it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>LootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<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.neoforged.neoforge.debug.lootMethods in net.neoforged.neoforge.debug.loot with parameters of type LootContextModifier and TypeMethodDescriptionprotected it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>GlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>GlobalLootModifiersTest.SilkTouchTestModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack>GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) private static ItemStackGlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt(ItemStack stack, LootContext context) 
- 
Uses of LootContext in net.neoforged.testframework.conditionMethods in net.neoforged.testframework.condition with parameters of type LootContext
CommonHooks.modifyLoot(ResourceLocation, ObjectArrayList, LootContext)instead.