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
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
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
KilledByCrossbowCriterion.Conditions.matches
(Collection<LootContext> victimContexts, int uniqueEntityTypeCount) boolean
LightningStrikeCriterion.Conditions.test
(LootContext lightning, List<LootContext> bystanders) -
Uses of LootContext in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,
LootContext, ItemStack> AndFunction.applier
private 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) AndFunction.apply
(ItemStack itemStack, LootContext lootContext) 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
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
RandomChanceWithLootingLootCondition.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 TypeFieldDescriptionstatic 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>> list) Modifier and TypeMethodDescriptionfinal 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) ApplyBonusLootFunction.process
(ItemStack stack, LootContext context) protected abstract ItemStack
ConditionalLootFunction.process
(ItemStack stack, LootContext context) CopyNameLootFunction.process
(ItemStack stack, LootContext context) CopyNbtLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
CopyStateFunction.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) FurnaceSmeltLootFunction.process
(ItemStack stack, LootContext context) LimitCountLootFunction.process
(ItemStack stack, LootContext context) LootingEnchantLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
ReferenceLootFunction.process
(ItemStack stack, LootContext context) SetAttributesLootFunction.process
(ItemStack stack, LootContext context) protected ItemStack
SetBannerPatternFunction.process
(ItemStack stack, LootContext context) SetContentsLootFunction.process
(ItemStack stack, LootContext context) SetCountLootFunction.process
(ItemStack stack, LootContext context) SetDamageLootFunction.process
(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process
(ItemStack stack, LootContext context) SetInstrumentLootFunction.process
(ItemStack stack, LootContext context) SetLootTableLootFunction.process
(ItemStack stack, LootContext context) SetLoreLootFunction.process
(ItemStack stack, LootContext context) SetNameLootFunction.process
(ItemStack stack, LootContext context) SetNbtLootFunction.process
(ItemStack stack, LootContext context) SetPotionLootFunction.process
(ItemStack stack, LootContext context) SetStewEffectLootFunction.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>> list) -
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 TypeMethodDescription@Nullable NbtElement
ContextLootNbtProvider.getNbt
(LootContext context) @Nullable NbtElement
ContextLootNbtProvider.Target.getNbt
(LootContext context) @Nullable NbtElement
LootNbtProvider.getNbt
(LootContext context) @Nullable NbtElement
StorageLootNbtProvider.getNbt
(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.number
Modifier and TypeMethodDescriptionfloat
BinomialLootNumberProvider.nextFloat
(LootContext context) float
ConstantLootNumberProvider.nextFloat
(LootContext context) float
LootNumberProvider.nextFloat
(LootContext context) float
ScoreLootNumberProvider.nextFloat
(LootContext context) float
UniformLootNumberProvider.nextFloat
(LootContext context) int
BinomialLootNumberProvider.nextInt
(LootContext context) default int
LootNumberProvider.nextInt
(LootContext context) int
UniformLootNumberProvider.nextInt
(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.score
Modifier and TypeMethodDescription@Nullable String
ContextLootScoreProvider.getName
(LootContext context) @Nullable String
FixedLootScoreProvider.getName
(LootContext context) @Nullable String
LootScoreProvider.getName
(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)