Uses of Class
net.minecraft.loot.LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancements.criterion
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
EntityPredicate.AndPredicate.compositePredicates
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createContext
(ServerPlayerEntity p_234575_0_, Entity p_234575_1_) Modifier and TypeMethodDescriptionboolean
BredAnimalsTrigger.Instance.matches
(LootContext p_233511_1_, LootContext p_233511_2_, LootContext p_233511_3_) boolean
CuredZombieVillagerTrigger.Instance.matches
(LootContext p_233970_1_, LootContext p_233970_2_) boolean
EntityPredicate.AndPredicate.matches
(LootContext p_234588_1_) boolean
FishingRodHookedTrigger.Instance.matches
(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) boolean
KilledTrigger.Instance.matches
(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_) boolean
PlayerEntityInteractionTrigger.Instance.matches
(ItemStack p_241481_1_, LootContext p_241481_2_) boolean
PlayerHurtEntityTrigger.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_) boolean
SummonedEntityTrigger.Instance.matches
(LootContext p_236273_1_) boolean
TameAnimalTrigger.Instance.matches
(LootContext p_236323_1_) boolean
TargetHitTrigger.Instance.matches
(LootContext p_236355_1_, Vector3d p_236355_2_, int p_236355_3_) boolean
ThrownItemPickedUpByEntityTrigger.Instance.matches
(ServerPlayerEntity p_234836_1_, ItemStack p_234836_2_, LootContext p_234836_3_) boolean
VillagerTradeTrigger.Instance.matches
(LootContext p_236575_1_, ItemStack p_236575_2_) Modifier and TypeMethodDescriptionboolean
ChanneledLightningTrigger.Instance.matches
(Collection<? extends LootContext> p_233676_1_) boolean
KilledByCrossbowTrigger.Instance.matches
(Collection<LootContext> p_234942_1_, int p_234942_2_) -
Uses of LootContext in net.minecraft.command.impl
Modifier and TypeMethodDescriptionprivate static int
LootCommand.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
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
LootPredicateManager.AndCombiner.composedPredicate
private final Predicate<LootContext>
LootEntry.compositeCondition
private final Predicate<LootContext>
LootPool.compositeCondition
private final BiFunction<ItemStack,
LootContext, ItemStack> LootPool.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootTable.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> StandaloneLootEntry.compositeFunction
private final Predicate<LootContext>
LootFunction.compositePredicates
Modifier and TypeMethodDescriptionvoid
LootContext.IDynamicDropProvider.add
(LootContext p_add_1_, Consumer<ItemStack> p_add_2_) private void
LootPool.addRandomItem
(Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_) void
LootPool.addRandomItems
(Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_) final ItemStack
LootFunction.apply
(ItemStack p_apply_1_, LootContext p_apply_2_) protected final boolean
LootEntry.canRun
(LootContext p_216141_1_) void
DynamicLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
EmptyLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
ILootGenerator.createItemStack
(Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_) void
ItemLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) protected abstract void
StandaloneLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
TableLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
TagLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) boolean
ILootEntry.expand
(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) final boolean
ParentedLootEntry.expand
(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) boolean
StandaloneLootEntry.expand
(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) boolean
TagLootEntry.expand
(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) private boolean
TagLootEntry.expandTag
(LootContext p_216179_1_, Consumer<ILootGenerator> p_216179_2_) void
LootTable.fill
(IInventory p_216118_1_, LootContext p_216118_2_) LootTable.getRandomItems
(LootContext p_216113_1_) void
LootTable.getRandomItems
(LootContext p_216120_1_, Consumer<ItemStack> p_216120_2_) Deprecated.void
LootTable.getRandomItemsRaw
(LootContext p_216114_1_, Consumer<ItemStack> p_216114_2_) protected abstract ItemStack
LootFunction.run
(ItemStack p_215859_1_, LootContext p_215859_2_) final boolean
LootPredicateManager.AndCombiner.test
(LootContext p_test_1_) -
Uses of LootContext in net.minecraft.loot.conditions
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
Alternative.composedPredicate
Modifier and TypeMethodDescriptionfinal boolean
Alternative.test
(LootContext p_test_1_) boolean
BlockStateProperty.test
(LootContext p_test_1_) boolean
DamageSourceProperties.test
(LootContext p_test_1_) boolean
EntityHasProperty.test
(LootContext p_test_1_) boolean
EntityHasScore.test
(LootContext p_test_1_) final boolean
Inverted.test
(LootContext p_test_1_) boolean
KilledByPlayer.test
(LootContext p_test_1_) boolean
LocationCheck.test
(LootContext p_test_1_) boolean
MatchTool.test
(LootContext p_test_1_) boolean
RandomChance.test
(LootContext p_test_1_) boolean
RandomChanceWithLooting.test
(LootContext p_test_1_) boolean
Reference.test
(LootContext p_test_1_) boolean
SurvivesExplosion.test
(LootContext p_test_1_) boolean
TableBonus.test
(LootContext p_test_1_) boolean
TimeCheck.test
(LootContext p_test_1_) boolean
WeatherCheck.test
(LootContext p_test_1_) -
Uses of LootContext in net.minecraft.loot.functions
Modifier and TypeFieldDescriptionfinal Function<LootContext,
INBT> CopyNbt.Source.getter
static final BiFunction<ItemStack,
LootContext, ItemStack> LootFunctionManager.IDENTITY
Modifier and TypeMethodDescriptionstatic BiFunction<ItemStack,
LootContext, ItemStack> LootFunctionManager.compose
(BiFunction<ItemStack, LootContext, ItemStack>[] p_216241_0_) Modifier 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 ItemStack
CopyBlockState.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_) Modifier 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
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
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.