Uses of Class
net.minecraft.loot.LootContext
-
-
Uses of LootContext in net.minecraft.advancements.criterion
Fields in net.minecraft.advancements.criterion with type parameters of type LootContext Modifier and Type Field Description private java.util.function.Predicate<LootContext>EntityPredicate.AndPredicate. compositePredicatesMethods in net.minecraft.advancements.criterion that return LootContext Modifier and Type Method Description static LootContextEntityPredicate. createContext(ServerPlayerEntity p_234575_0_, Entity p_234575_1_)Methods in net.minecraft.advancements.criterion with parameters of type LootContext Modifier and Type Method Description booleanBredAnimalsTrigger.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_, java.util.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 LootContext Modifier and Type Method Description booleanChanneledLightningTrigger.Instance. matches(java.util.Collection<? extends LootContext> p_233676_1_)booleanKilledByCrossbowTrigger.Instance. matches(java.util.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 LootContext Modifier and Type Method Description private 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 LootContext Modifier and Type Field Description private java.util.function.Predicate<LootContext>LootPredicateManager.AndCombiner. composedPredicateprivate java.util.function.Predicate<LootContext>LootEntry. compositeConditionprivate java.util.function.Predicate<LootContext>LootPool. compositeConditionprivate java.util.function.BiFunction<ItemStack,LootContext,ItemStack>LootPool. compositeFunctionprivate java.util.function.BiFunction<ItemStack,LootContext,ItemStack>LootTable. compositeFunctionprivate java.util.function.BiFunction<ItemStack,LootContext,ItemStack>StandaloneLootEntry. compositeFunctionprivate java.util.function.Predicate<LootContext>LootFunction. compositePredicatesMethods in net.minecraft.loot that return LootContext Modifier and Type Method Description LootContextLootContext.Builder. create(LootParameterSet p_216022_1_)Methods in net.minecraft.loot with parameters of type LootContext Modifier and Type Method Description voidLootContext.IDynamicDropProvider. add(LootContext p_add_1_, java.util.function.Consumer<ItemStack> p_add_2_)private voidLootPool. addRandomItem(java.util.function.Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_)voidLootPool. addRandomItems(java.util.function.Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_)ItemStackLootFunction. apply(ItemStack p_apply_1_, LootContext p_apply_2_)protected booleanLootEntry. canRun(LootContext p_216141_1_)voidDynamicLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)voidEmptyLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)voidILootGenerator. createItemStack(java.util.function.Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_)voidItemLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)protected abstract voidStandaloneLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)voidTableLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)voidTagLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)booleanILootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)booleanParentedLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)booleanStandaloneLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)booleanTagLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)private booleanTagLootEntry. expandTag(LootContext p_216179_1_, java.util.function.Consumer<ILootGenerator> p_216179_2_)voidLootTable. fill(IInventory p_216118_1_, LootContext p_216118_2_)java.util.List<ItemStack>LootTable. getRandomItems(LootContext p_216113_1_)voidLootTable. getRandomItems(LootContext p_216120_1_, java.util.function.Consumer<ItemStack> p_216120_2_)Deprecated.voidLootTable. getRandomItemsRaw(LootContext p_216114_1_, java.util.function.Consumer<ItemStack> p_216114_2_)protected abstract ItemStackLootFunction. run(ItemStack p_215859_1_, LootContext p_215859_2_)booleanLootPredicateManager.AndCombiner. test(LootContext p_test_1_)Constructors in net.minecraft.loot with parameters of type LootContext Constructor Description Builder(LootContext context) -
Uses of LootContext in net.minecraft.loot.conditions
Fields in net.minecraft.loot.conditions with type parameters of type LootContext Modifier and Type Field Description private java.util.function.Predicate<LootContext>Alternative. composedPredicateMethods in net.minecraft.loot.conditions with parameters of type LootContext Modifier and Type Method Description 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_)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 LootContext Modifier and Type Field Description java.util.function.Function<LootContext,INBT>CopyNbt.Source. getterstatic java.util.function.BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager. IDENTITYMethods in net.minecraft.loot.functions that return types with arguments of type LootContext Modifier and Type Method Description static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager. compose(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_)Methods in net.minecraft.loot.functions with parameters of type LootContext Modifier and Type Method Description static java.util.function.UnaryOperator<ITextComponent>SetName. createResolver(LootContext p_215936_0_, LootContext.EntityTarget p_215936_1_)static java.util.function.Consumer<ItemStack>ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_)ItemStackApplyBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)protected ItemStackCopyBlockState. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackCopyName. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackCopyNbt. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackEnchantRandomly. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackEnchantWithLevels. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackExplorationMap. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackExplosionDecay. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackFillPlayerHead. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackLimitCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackLootingEnchantBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetAttributes. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetContents. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetDamage. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetLootTable. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetLore. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetName. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetNBT. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSetStewEffect. run(ItemStack p_215859_1_, LootContext p_215859_2_)ItemStackSmelt. run(ItemStack p_215859_1_, LootContext p_215859_2_)Method parameters in net.minecraft.loot.functions with type arguments of type LootContext Modifier and Type Method Description static java.util.function.Consumer<ItemStack>ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.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 LootContext Modifier and Type Method Description static java.util.List<ItemStack>ForgeHooks. modifyLoot(java.util.List<ItemStack> list, LootContext context)Deprecated.static java.util.List<ItemStack>ForgeHooks. modifyLoot(ResourceLocation lootTableId, java.util.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 LootContext Modifier and Type Field Description private java.util.function.Predicate<LootContext>LootModifier. combinedConditionsMethods in net.minecraftforge.common.loot with parameters of type LootContext Modifier and Type Method Description java.util.List<ItemStack>IGlobalLootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)Applies the modifier to the list of generated loot.java.util.List<ItemStack>LootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)protected abstract java.util.List<ItemStack>LootModifier. doApply(java.util.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 LootContext Modifier and Type Method Description protected java.util.List<ItemStack>GlobalLootModifiersTest.DungeonLootEnhancerModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)java.util.List<ItemStack>GlobalLootModifiersTest.SilkTouchTestModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)java.util.List<ItemStack>GlobalLootModifiersTest.SmeltingEnchantmentModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)java.util.List<ItemStack>GlobalLootModifiersTest.WheatSeedsConverterModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)private static ItemStackGlobalLootModifiersTest.SmeltingEnchantmentModifier. smelt(ItemStack stack, LootContext context)
-