Uses of Class
net.minecraft.loot.context.LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
BredAnimalsCriterion.Conditions.matches
(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext) boolean
CuredZombieVillagerCriterion.Conditions.matches
(LootContext zombie, LootContext villager) boolean
EffectsChangedCriterion.Conditions.matches
(ServerPlayerEntity player, @Nullable LootContext context) boolean
FallAfterExplosionCriterion.Conditions.matches
(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable LootContext cause) boolean
FishingRodHookedCriterion.Conditions.matches
(ItemStack rodStack, LootContext hookedEntity, Collection<ItemStack> fishingLoots) boolean
PlayerHurtEntityCriterion.Conditions.matches
(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked) boolean
SummonedEntityCriterion.Conditions.matches
(LootContext entity) boolean
TameAnimalCriterion.Conditions.matches
(LootContext entity) boolean
VillagerTradeCriterion.Conditions.matches
(LootContext villager, ItemStack stack) private static boolean
BredAnimalsCriterion.Conditions.parentMatches
(Optional<LootContextPredicate> parent, LootContext parentContext) boolean
AnyBlockUseCriterion.Conditions.test
(LootContext location) boolean
DefaultBlockUseCriterion.Conditions.test
(LootContext location) boolean
ItemCriterion.Conditions.test
(LootContext location) boolean
LightningStrikeCriterion.Conditions.test
(LootContext lightning, List<LootContext> bystanders) boolean
OnKilledCriterion.Conditions.test
(ServerPlayerEntity player, LootContext entity, DamageSource killingBlow) boolean
PlayerInteractedWithEntityCriterion.Conditions.test
(ItemStack stack, LootContext entity) boolean
TargetHitCriterion.Conditions.test
(LootContext projectile, Vec3d hitPos, int signalStrength) boolean
ThrownItemPickedUpByEntityCriterion.Conditions.test
(ServerPlayerEntity player, ItemStack stack, LootContext entity) Modifier and TypeMethodDescriptionboolean
ChanneledLightningCriterion.Conditions.matches
(Collection<? extends LootContext> victims) boolean
KilledByArrowCriterion.Conditions.matches
(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable ItemStack weapon) boolean
LightningStrikeCriterion.Conditions.test
(LootContext lightning, List<LootContext> bystanders) -
Uses of LootContext in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic LootContext
Enchantment.createEnchantedDamageLootContext
(ServerWorld world, int level, Entity entity, DamageSource damageSource) private static LootContext
Enchantment.createEnchantedEntityLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContext
Enchantment.createEnchantedItemLootContext
(ServerWorld world, int level, ItemStack stack) private static LootContext
Enchantment.createEnchantedLocationLootContext
(ServerWorld world, int level, Entity entity, boolean enchantmentActive) private static LootContext
Enchantment.createHitBlockLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) Modifier and TypeMethodDescriptionprivate static <T> void
Enchantment.applyEffects
(List<EnchantmentEffectEntry<T>> entries, LootContext lootContext, Consumer<T> effectConsumer) -
Uses of LootContext in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionboolean
EnchantmentEffectEntry.test
(LootContext context) boolean
TargetedEnchantmentEffect.test
(LootContext lootContext) -
Uses of LootContext in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final BiFunction
<ItemStack, LootContext, ItemStack> LootTable.combinedFunction
private final BiFunction
<ItemStack, LootContext, ItemStack> LootPool.javaFunctions
private final Predicate
<LootContext> LootPool.predicate
Modifier and TypeMethodDescriptionvoid
LootPool.addGeneratedLoot
(Consumer<ItemStack> lootConsumer, LootContext context) void
LootChoice.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) private ObjectArrayList
<ItemStack> LootTable.generateLoot
(LootContext context) void
LootTable.generateLoot
(LootContext context, Consumer<ItemStack> lootConsumer) void
LootTable.generateUnprocessedLoot
(LootContext context, Consumer<ItemStack> lootConsumer) private void
LootPool.supplyOnce
(Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of LootContext in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final Predicate
<LootContext> AlternativeLootCondition.predicate
Modifier and TypeMethodDescriptionprotected boolean
EntityScoresLootCondition.entityScoreIsInRange
(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range) final boolean
AlternativeLootCondition.test
(LootContext lootContext) boolean
BlockStatePropertyLootCondition.test
(LootContext lootContext) boolean
DamageSourcePropertiesLootCondition.test
(LootContext lootContext) boolean
EnchantmentActiveCheckLootCondition.test
(LootContext lootContext) boolean
EntityPropertiesLootCondition.test
(LootContext lootContext) boolean
EntityScoresLootCondition.test
(LootContext lootContext) boolean
InvertedLootCondition.test
(LootContext lootContext) boolean
KilledByPlayerLootCondition.test
(LootContext lootContext) boolean
LocationCheckLootCondition.test
(LootContext lootContext) boolean
MatchToolLootCondition.test
(LootContext lootContext) boolean
RandomChanceLootCondition.test
(LootContext lootContext) boolean
RandomChanceWithEnchantedBonusLootCondition.test
(LootContext lootContext) boolean
ReferenceLootCondition.test
(LootContext lootContext) boolean
SurvivesExplosionLootCondition.test
(LootContext lootContext) boolean
TableBonusLootCondition.test
(LootContext lootContext) boolean
TimeCheckLootCondition.test
(LootContext lootContext) boolean
ValueCheckLootCondition.test
(LootContext lootContext) boolean
WeatherCheckLootCondition.test
(LootContext lootContext) ModifierConstructorDescriptionprotected
AlternativeLootCondition
(List<LootCondition> terms, Predicate<LootContext> predicate) -
Uses of LootContext in net.minecraft.loot.context
-
Uses of LootContext in net.minecraft.loot.entry
Modifier and TypeFieldDescription(package private) final BiFunction
<ItemStack, LootContext, ItemStack> LeafEntry.compiledFunctions
private final Predicate
<LootContext> LootPoolEntry.conditionPredicate
Modifier and TypeMethodDescriptionfinal boolean
CombinedEntry.expand
(LootContext context, Consumer<LootChoice> choiceConsumer) boolean
EntryCombiner.expand
(LootContext context, Consumer<LootChoice> choiceConsumer) boolean
LeafEntry.expand
(LootContext context, Consumer<LootChoice> choiceConsumer) boolean
TagEntry.expand
(LootContext context, Consumer<LootChoice> choiceConsumer) void
DynamicEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) void
EmptyEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) void
ItemEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) protected abstract void
LeafEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) void
LootTableEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) void
TagEntry.generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) private boolean
TagEntry.grow
(LootContext context, Consumer<LootChoice> lootChoiceExpander) protected final boolean
LootPoolEntry.test
(LootContext context) -
Uses of LootContext in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final BiFunction
<ItemStack, LootContext, ItemStack> AndLootFunction.applier
static final BiFunction
<ItemStack, LootContext, ItemStack> LootFunctionTypes.NOOP
private final Predicate
<LootContext> ConditionalLootFunction.predicate
Modifier and TypeMethodDescriptionstatic BiFunction
<ItemStack, LootContext, ItemStack> LootFunctionTypes.join
(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) Modifier and TypeMethodDescriptionAndLootFunction.apply
(ItemStack itemStack, LootContext lootContext) final ItemStack
ConditionalLootFunction.apply
(ItemStack itemStack, LootContext lootContext) LootFunction.apply
(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) static UnaryOperator
<Text> SetNameLootFunction.applySourceEntity
(LootContext context, LootContext.EntityTarget sourceEntity) private AttributeModifiersComponent
SetAttributesLootFunction.applyTo
(LootContext context, AttributeModifiersComponent attributeModifiersComponent) CopyComponentsLootFunction.Source.getComponents
(LootContext context) SetLoreLootFunction.getNewLoreTexts
(@Nullable LoreComponent current, LootContext context) ApplyBonusLootFunction.process
(ItemStack stack, LootContext context) protected abstract ItemStack
ConditionalLootFunction.process
(ItemStack stack, LootContext context) CopyComponentsLootFunction.process
(ItemStack stack, LootContext context) CopyNameLootFunction.process
(ItemStack stack, LootContext context) CopyNbtLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
CopyStateLootFunction.process
(ItemStack stack, LootContext context) EnchantedCountIncreaseLootFunction.process
(ItemStack stack, LootContext context) EnchantRandomlyLootFunction.process
(ItemStack stack, LootContext context) EnchantWithLevelsLootFunction.process
(ItemStack stack, LootContext context) ExplorationMapLootFunction.process
(ItemStack stack, LootContext context) ExplosionDecayLootFunction.process
(ItemStack stack, LootContext context) FillPlayerHeadLootFunction.process
(ItemStack stack, LootContext context) FilteredLootFunction.process
(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process
(ItemStack stack, LootContext context) LimitCountLootFunction.process
(ItemStack stack, LootContext context) ModifyContentsLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
ReferenceLootFunction.process
(ItemStack stack, LootContext context) SetAttributesLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetBannerPatternLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetBookCoverLootFunction.process
(ItemStack stack, LootContext context) SetComponentsLootFunction.process
(ItemStack stack, LootContext context) SetContentsLootFunction.process
(ItemStack stack, LootContext context) SetCountLootFunction.process
(ItemStack stack, LootContext context) SetCustomDataLootFunction.process
(ItemStack stack, LootContext context) SetCustomModelDataLootFunction.process
(ItemStack stack, LootContext context) SetDamageLootFunction.process
(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetFireworkExplosionLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetFireworksLootFunction.process
(ItemStack stack, LootContext context) SetInstrumentLootFunction.process
(ItemStack stack, LootContext context) SetItemLootFunction.process
(ItemStack stack, LootContext context) SetLootTableLootFunction.process
(ItemStack stack, LootContext context) SetLoreLootFunction.process
(ItemStack stack, LootContext context) SetNameLootFunction.process
(ItemStack stack, LootContext context) SetOminousBottleAmplifierLootFunction.process
(ItemStack stack, LootContext context) SetPotionLootFunction.process
(ItemStack stack, LootContext context) SetStewEffectLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetWritableBookPagesLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetWrittenBookPagesLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
ToggleTooltipsLootFunction.process
(ItemStack stack, LootContext context) Modifier and TypeMethodDescriptionLootFunction.apply
(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) static BiFunction
<ItemStack, LootContext, ItemStack> LootFunctionTypes.join
(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) -
Uses of LootContext in net.minecraft.loot.operator
Modifier and TypeMethodDescriptionint
BoundedIntUnaryOperator.Applier.apply
(LootContext context, int value) int
BoundedIntUnaryOperator.apply
(LootContext context, int value) boolean
BoundedIntUnaryOperator.test
(LootContext context, int value) boolean
BoundedIntUnaryOperator.Tester.test
(LootContext context, int value) -
Uses of LootContext in net.minecraft.loot.provider.nbt
Modifier and TypeMethodDescriptionContextLootNbtProvider.getNbt
(LootContext context) ContextLootNbtProvider.Target.getNbt
(LootContext context) LootNbtProvider.getNbt
(LootContext context) StorageLootNbtProvider.getNbt
(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.number
Modifier and TypeMethodDescriptionprivate Optional
<AbstractNbtNumber> StorageLootNumberProvider.getNumber
(LootContext context) float
BinomialLootNumberProvider.nextFloat
(LootContext context) float
ConstantLootNumberProvider.nextFloat
(LootContext context) float
EnchantmentLevelLootNumberProvider.nextFloat
(LootContext context) float
LootNumberProvider.nextFloat
(LootContext context) float
ScoreLootNumberProvider.nextFloat
(LootContext context) float
StorageLootNumberProvider.nextFloat
(LootContext context) float
UniformLootNumberProvider.nextFloat
(LootContext context) int
BinomialLootNumberProvider.nextInt
(LootContext context) default int
LootNumberProvider.nextInt
(LootContext context) int
StorageLootNumberProvider.nextInt
(LootContext context) int
UniformLootNumberProvider.nextInt
(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.score
Modifier and TypeMethodDescriptionContextLootScoreProvider.getScoreHolder
(LootContext context) FixedLootScoreProvider.getScoreHolder
(LootContext context) LootScoreProvider.getScoreHolder
(LootContext context) -
Uses of LootContext in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate final Predicate
<LootContext> LootContextPredicate.combinedCondition
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createAdvancementEntityLootContext
(ServerPlayerEntity player, Entity target)