Uses of Class
net.minecraft.loot.LootContext
Packages that use LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancements.criterion
Fields in net.minecraft.advancements.criterion with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>EntityPredicate.AndPredicate.compositePredicatesMethods in net.minecraft.advancements.criterion that return LootContextModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createContext(ServerPlayerEntity p_234575_0_, Entity p_234575_1_) Methods in net.minecraft.advancements.criterion with parameters of type LootContextModifier and TypeMethodDescriptionbooleanBredAnimalsTrigger.Instance.matches(LootContext p_233511_1_, LootContext p_233511_2_, LootContext p_233511_3_) booleanCuredZombieVillagerTrigger.Instance.matches(LootContext p_233970_1_, LootContext p_233970_2_) booleanEntityPredicate.AndPredicate.matches(LootContext p_234588_1_) booleanFishingRodHookedTrigger.Instance.matches(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) booleanKilledTrigger.Instance.matches(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_) booleanPlayerEntityInteractionTrigger.Instance.matches(ItemStack p_241481_1_, LootContext p_241481_2_) booleanPlayerHurtEntityTrigger.Instance.matches(ServerPlayerEntity p_235609_1_, LootContext p_235609_2_, DamageSource p_235609_3_, float p_235609_4_, float p_235609_5_, boolean p_235609_6_) booleanSummonedEntityTrigger.Instance.matches(LootContext p_236273_1_) booleanTameAnimalTrigger.Instance.matches(LootContext p_236323_1_) booleanTargetHitTrigger.Instance.matches(LootContext p_236355_1_, Vector3d p_236355_2_, int p_236355_3_) booleanThrownItemPickedUpByEntityTrigger.Instance.matches(ServerPlayerEntity p_234836_1_, ItemStack p_234836_2_, LootContext p_234836_3_) booleanVillagerTradeTrigger.Instance.matches(LootContext p_236575_1_, ItemStack p_236575_2_) Method parameters in net.minecraft.advancements.criterion with type arguments of type LootContextModifier and TypeMethodDescriptionbooleanChanneledLightningTrigger.Instance.matches(Collection<? extends LootContext> p_233676_1_) booleanKilledByCrossbowTrigger.Instance.matches(Collection<LootContext> p_234942_1_, int p_234942_2_) -
Uses of LootContext in net.minecraft.command.impl
Methods in net.minecraft.command.impl with parameters of type LootContextModifier and TypeMethodDescriptionprivate static intLootCommand.drop(com.mojang.brigadier.context.CommandContext<CommandSource> p_218871_0_, ResourceLocation p_218871_1_, LootContext p_218871_2_, LootCommand.ITargetHandler p_218871_3_) -
Uses of LootContext in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>LootPredicateManager.AndCombiner.composedPredicateprivate final Predicate<LootContext>LootEntry.compositeConditionprivate final Predicate<LootContext>LootPool.compositeConditionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> StandaloneLootEntry.compositeFunctionprivate final Predicate<LootContext>LootFunction.compositePredicatesMethods in net.minecraft.loot that return LootContextMethods in net.minecraft.loot with parameters of type LootContextModifier and TypeMethodDescriptionvoidLootContext.IDynamicDropProvider.add(LootContext p_add_1_, Consumer<ItemStack> p_add_2_) private voidLootPool.addRandomItem(Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_) voidLootPool.addRandomItems(Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_) final ItemStackLootFunction.apply(ItemStack p_apply_1_, LootContext p_apply_2_) protected final booleanLootEntry.canRun(LootContext p_216141_1_) voidDynamicLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidEmptyLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidILootGenerator.createItemStack(Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_) voidItemLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) protected abstract voidStandaloneLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidTableLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidTagLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) booleanILootEntry.expand(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) final booleanParentedLootEntry.expand(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) booleanStandaloneLootEntry.expand(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) booleanTagLootEntry.expand(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) private booleanTagLootEntry.expandTag(LootContext p_216179_1_, Consumer<ILootGenerator> p_216179_2_) voidLootTable.fill(IInventory p_216118_1_, LootContext p_216118_2_) LootTable.getRandomItems(LootContext p_216113_1_) voidLootTable.getRandomItems(LootContext p_216120_1_, Consumer<ItemStack> p_216120_2_) Deprecated.voidLootTable.getRandomItemsRaw(LootContext p_216114_1_, Consumer<ItemStack> p_216114_2_) protected abstract ItemStackLootFunction.run(ItemStack p_215859_1_, LootContext p_215859_2_) final booleanLootPredicateManager.AndCombiner.test(LootContext p_test_1_) Constructors in net.minecraft.loot with parameters of type LootContext -
Uses of LootContext in net.minecraft.loot.conditions
Fields in net.minecraft.loot.conditions with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext>Alternative.composedPredicateMethods in net.minecraft.loot.conditions with parameters of type LootContextModifier and TypeMethodDescriptionfinal booleanAlternative.test(LootContext p_test_1_) booleanBlockStateProperty.test(LootContext p_test_1_) booleanDamageSourceProperties.test(LootContext p_test_1_) booleanEntityHasProperty.test(LootContext p_test_1_) booleanEntityHasScore.test(LootContext p_test_1_) final booleanInverted.test(LootContext p_test_1_) booleanKilledByPlayer.test(LootContext p_test_1_) booleanLocationCheck.test(LootContext p_test_1_) booleanMatchTool.test(LootContext p_test_1_) booleanRandomChance.test(LootContext p_test_1_) booleanRandomChanceWithLooting.test(LootContext p_test_1_) booleanReference.test(LootContext p_test_1_) booleanSurvivesExplosion.test(LootContext p_test_1_) booleanTableBonus.test(LootContext p_test_1_) booleanTimeCheck.test(LootContext p_test_1_) booleanWeatherCheck.test(LootContext p_test_1_) -
Uses of LootContext in net.minecraft.loot.functions
Fields in net.minecraft.loot.functions with type parameters of type LootContextModifier and TypeFieldDescriptionfinal Function<LootContext,INBT> CopyNbt.Source.getterstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.IDENTITYMethods in net.minecraft.loot.functions that return types with arguments of type LootContextModifier and TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.compose(BiFunction<ItemStack, LootContext, ItemStack>[] p_216241_0_) Methods in net.minecraft.loot.functions with parameters of type LootContextModifier and TypeMethodDescriptionstatic UnaryOperator<ITextComponent>SetName.createResolver(LootContext p_215936_0_, LootContext.EntityTarget p_215936_1_) ILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) ApplyBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) protected ItemStackCopyBlockState.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyName.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyNbt.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantRandomly.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantWithLevels.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplorationMap.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplosionDecay.run(ItemStack p_215859_1_, LootContext p_215859_2_) FillPlayerHead.run(ItemStack p_215859_1_, LootContext p_215859_2_) LimitCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) LootingEnchantBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetAttributes.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetContents.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetDamage.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLootTable.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLore.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetName.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetNBT.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetStewEffect.run(ItemStack p_215859_1_, LootContext p_215859_2_) Smelt.run(ItemStack p_215859_1_, LootContext p_215859_2_) Method parameters in net.minecraft.loot.functions with type arguments of type LootContextModifier and TypeMethodDescriptionILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) -
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).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.