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. compositePredicates
Methods in net.minecraft.advancements.criterion that return LootContext Modifier and Type Method Description static LootContext
EntityPredicate. 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 boolean
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_, java.util.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_)
Method parameters in net.minecraft.advancements.criterion with type arguments of type LootContext Modifier and Type Method Description boolean
ChanneledLightningTrigger.Instance. matches(java.util.Collection<? extends LootContext> p_233676_1_)
boolean
KilledByCrossbowTrigger.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 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
Fields in net.minecraft.loot with type parameters of type LootContext Modifier and Type Field Description private java.util.function.Predicate<LootContext>
LootPredicateManager.AndCombiner. composedPredicate
private java.util.function.Predicate<LootContext>
LootEntry. compositeCondition
private java.util.function.Predicate<LootContext>
LootPool. compositeCondition
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootPool. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootTable. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
StandaloneLootEntry. compositeFunction
private java.util.function.Predicate<LootContext>
LootFunction. compositePredicates
Methods in net.minecraft.loot that return LootContext Modifier and Type Method Description LootContext
LootContext.Builder. create(LootParameterSet p_216022_1_)
Methods in net.minecraft.loot with parameters of type LootContext Modifier and Type Method Description void
LootContext.IDynamicDropProvider. add(LootContext p_add_1_, java.util.function.Consumer<ItemStack> p_add_2_)
private void
LootPool. addRandomItem(java.util.function.Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_)
void
LootPool. addRandomItems(java.util.function.Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_)
ItemStack
LootFunction. apply(ItemStack p_apply_1_, LootContext p_apply_2_)
protected boolean
LootEntry. canRun(LootContext p_216141_1_)
void
DynamicLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
EmptyLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
ILootGenerator. createItemStack(java.util.function.Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_)
void
ItemLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
protected abstract void
StandaloneLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
TableLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
TagLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
boolean
ILootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
boolean
ParentedLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
boolean
StandaloneLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
boolean
TagLootEntry. expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
private boolean
TagLootEntry. expandTag(LootContext p_216179_1_, java.util.function.Consumer<ILootGenerator> p_216179_2_)
void
LootTable. fill(IInventory p_216118_1_, LootContext p_216118_2_)
java.util.List<ItemStack>
LootTable. getRandomItems(LootContext p_216113_1_)
void
LootTable. getRandomItems(LootContext p_216120_1_, java.util.function.Consumer<ItemStack> p_216120_2_)
Deprecated.void
LootTable. getRandomItemsRaw(LootContext p_216114_1_, java.util.function.Consumer<ItemStack> p_216114_2_)
protected abstract ItemStack
LootFunction. run(ItemStack p_215859_1_, LootContext p_215859_2_)
boolean
LootPredicateManager.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. composedPredicate
Methods in net.minecraft.loot.conditions with parameters of type LootContext Modifier and Type Method Description 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_)
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
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. getter
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager. IDENTITY
Methods 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_)
ItemStack
ApplyBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
protected ItemStack
CopyBlockState. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyNbt. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantRandomly. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantWithLevels. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplorationMap. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplosionDecay. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
FillPlayerHead. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LimitCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LootingEnchantBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetAttributes. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetContents. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetDamage. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLootTable. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLore. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetNBT. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetStewEffect. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
Smelt. 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. combinedConditions
Methods 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).boolean
LootTableIdCondition. 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 ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier. smelt(ItemStack stack, LootContext context)
-