Uses of Class
net.minecraft.loot.context.LootContext
Packages that use LootContext
Package
Description
-
Uses of LootContext in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type LootContextModifier and TypeMethodDescriptionbooleanBredAnimalsCriterion.Conditions.matches(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext) booleanCuredZombieVillagerCriterion.Conditions.matches(LootContext zombie, LootContext villager) booleanEffectsChangedCriterion.Conditions.matches(ServerPlayerEntity player, @Nullable LootContext context) booleanFallAfterExplosionCriterion.Conditions.matches(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable LootContext cause) booleanFishingRodHookedCriterion.Conditions.matches(ItemStack rodStack, LootContext hookedEntity, Collection<ItemStack> fishingLoots) booleanPlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked) booleanSummonedEntityCriterion.Conditions.matches(LootContext entity) booleanTameAnimalCriterion.Conditions.matches(LootContext entity) booleanVillagerTradeCriterion.Conditions.matches(LootContext villager, ItemStack stack) private static booleanBredAnimalsCriterion.Conditions.parentMatches(Optional<LootContextPredicate> parent, LootContext parentContext) booleanAnyBlockUseCriterion.Conditions.test(LootContext location) booleanDefaultBlockUseCriterion.Conditions.test(LootContext location) booleanItemCriterion.Conditions.test(LootContext location) booleanLightningStrikeCriterion.Conditions.test(LootContext lightning, List<LootContext> bystanders) booleanOnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext entity, DamageSource killingBlow) booleanPlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext entity) booleanTargetHitCriterion.Conditions.test(LootContext projectile, Vec3d hitPos, int signalStrength) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entity) Method parameters in net.minecraft.advancement.criterion with type arguments of type LootContextModifier and TypeMethodDescriptionbooleanChanneledLightningCriterion.Conditions.matches(Collection<? extends LootContext> victims) booleanKilledByCrossbowCriterion.Conditions.matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount) booleanLightningStrikeCriterion.Conditions.test(LootContext lightning, List<LootContext> bystanders) -
Uses of LootContext in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return LootContextModifier and TypeMethodDescriptionstatic LootContextEnchantment.createEnchantedDamageLootContext(ServerWorld world, int level, Entity entity, DamageSource damageSource) private static LootContextEnchantment.createEnchantedEntityLootContext(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContextEnchantment.createEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack) private static LootContextEnchantment.createEnchantedLocationLootContext(ServerWorld world, int level, Entity entity, boolean enchantmentActive) private static LootContextEnchantment.createHitBlockLootContext(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) Methods in net.minecraft.enchantment with parameters of type LootContextModifier and TypeMethodDescriptionprivate static <T> voidEnchantment.applyEffects(List<EnchantmentEffectEntry<T>> entries, LootContext lootContext, Consumer<T> effectConsumer) -
Uses of LootContext in net.minecraft.enchantment.effect
Methods in net.minecraft.enchantment.effect with parameters of type LootContextModifier and TypeMethodDescriptionbooleanEnchantmentEffectEntry.test(LootContext context) booleanTargetedEnchantmentEffect.test(LootContext lootContext) -
Uses of LootContext in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootTable.combinedFunctionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootPool.javaFunctionsprivate final Predicate<LootContext> LootPool.predicateMethods in net.minecraft.loot with parameters of type LootContextModifier and TypeMethodDescriptionvoidLootPool.addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootChoice.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) private ObjectArrayList<ItemStack> LootTable.generateLoot(LootContext context) voidLootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) private voidLootPool.supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of LootContext in net.minecraft.loot.condition
Fields in net.minecraft.loot.condition with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext> AlternativeLootCondition.predicateMethods in net.minecraft.loot.condition with parameters of type LootContextModifier and TypeMethodDescriptionprotected booleanEntityScoresLootCondition.entityScoreIsInRange(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range) final booleanAlternativeLootCondition.test(LootContext lootContext) booleanBlockStatePropertyLootCondition.test(LootContext lootContext) booleanDamageSourcePropertiesLootCondition.test(LootContext lootContext) booleanEnchantmentActiveCheckLootCondition.test(LootContext lootContext) booleanEntityPropertiesLootCondition.test(LootContext lootContext) booleanEntityScoresLootCondition.test(LootContext lootContext) booleanInvertedLootCondition.test(LootContext lootContext) booleanKilledByPlayerLootCondition.test(LootContext lootContext) booleanLocationCheckLootCondition.test(LootContext lootContext) booleanMatchToolLootCondition.test(LootContext lootContext) booleanRandomChanceLootCondition.test(LootContext lootContext) booleanRandomChanceWithEnchantedBonusLootCondition.test(LootContext lootContext) booleanReferenceLootCondition.test(LootContext lootContext) booleanSurvivesExplosionLootCondition.test(LootContext lootContext) booleanTableBonusLootCondition.test(LootContext lootContext) booleanTimeCheckLootCondition.test(LootContext lootContext) booleanValueCheckLootCondition.test(LootContext lootContext) booleanWeatherCheckLootCondition.test(LootContext lootContext) Constructor parameters in net.minecraft.loot.condition with type arguments of type LootContextModifierConstructorDescriptionprotectedAlternativeLootCondition(List<LootCondition> terms, Predicate<LootContext> predicate) -
Uses of LootContext in net.minecraft.loot.context
Methods in net.minecraft.loot.context that return LootContext -
Uses of LootContext in net.minecraft.loot.entry
Fields in net.minecraft.loot.entry with type parameters of type LootContextModifier and TypeFieldDescription(package private) final BiFunction<ItemStack, LootContext, ItemStack> LeafEntry.compiledFunctionsprivate final Predicate<LootContext> LootPoolEntry.conditionPredicateMethods in net.minecraft.loot.entry with parameters of type LootContextModifier and TypeMethodDescriptionfinal booleanCombinedEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer) booleanEntryCombiner.expand(LootContext context, Consumer<LootChoice> choiceConsumer) booleanLeafEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer) booleanTagEntry.expand(LootContext context, Consumer<LootChoice> choiceConsumer) voidDynamicEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidEmptyEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidItemEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) protected abstract voidLeafEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootTableEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidTagEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) private booleanTagEntry.grow(LootContext context, Consumer<LootChoice> lootChoiceExpander) protected final booleanLootPoolEntry.test(LootContext context) -
Uses of LootContext in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> AndLootFunction.applierstatic final BiFunction<ItemStack, LootContext, ItemStack> LootFunctionTypes.NOOPprivate final Predicate<LootContext> ConditionalLootFunction.predicateMethods in net.minecraft.loot.function that return types with arguments of type LootContextModifier and TypeMethodDescriptionstatic BiFunction<ItemStack, LootContext, ItemStack> LootFunctionTypes.join(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) Methods in net.minecraft.loot.function with parameters of type LootContextModifier and TypeMethodDescriptionAndLootFunction.apply(ItemStack itemStack, LootContext lootContext) final ItemStackConditionalLootFunction.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 AttributeModifiersComponentSetAttributesLootFunction.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 ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyComponentsLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateLootFunction.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 ItemStackReferenceLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBookCoverLootFunction.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 ItemStackSetFireworkExplosionLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetFireworksLootFunction.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 ItemStackSetWritableBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetWrittenBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackToggleTooltipsLootFunction.process(ItemStack stack, LootContext context) Method parameters in net.minecraft.loot.function with type arguments of type LootContextModifier 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
Methods in net.minecraft.loot.operator with parameters of type LootContextModifier and TypeMethodDescriptionintBoundedIntUnaryOperator.Applier.apply(LootContext context, int value) intBoundedIntUnaryOperator.apply(LootContext context, int value) booleanBoundedIntUnaryOperator.test(LootContext context, int value) booleanBoundedIntUnaryOperator.Tester.test(LootContext context, int value) -
Uses of LootContext in net.minecraft.loot.provider.nbt
Methods in net.minecraft.loot.provider.nbt with parameters of type LootContextModifier 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
Methods in net.minecraft.loot.provider.number with parameters of type LootContextModifier and TypeMethodDescriptionprivate Optional<AbstractNbtNumber> StorageLootNumberProvider.getNumber(LootContext context) floatBinomialLootNumberProvider.nextFloat(LootContext context) floatConstantLootNumberProvider.nextFloat(LootContext context) floatEnchantmentLevelLootNumberProvider.nextFloat(LootContext context) floatLootNumberProvider.nextFloat(LootContext context) floatScoreLootNumberProvider.nextFloat(LootContext context) floatStorageLootNumberProvider.nextFloat(LootContext context) floatUniformLootNumberProvider.nextFloat(LootContext context) intBinomialLootNumberProvider.nextInt(LootContext context) default intLootNumberProvider.nextInt(LootContext context) intStorageLootNumberProvider.nextInt(LootContext context) intUniformLootNumberProvider.nextInt(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.score
Methods in net.minecraft.loot.provider.score with parameters of type LootContextModifier and TypeMethodDescriptionContextLootScoreProvider.getScoreHolder(LootContext context) FixedLootScoreProvider.getScoreHolder(LootContext context) LootScoreProvider.getScoreHolder(LootContext context) -
Uses of LootContext in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type LootContextModifier and TypeFieldDescriptionprivate final Predicate<LootContext> LootContextPredicate.combinedConditionMethods in net.minecraft.predicate.entity that return LootContextModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target) Methods in net.minecraft.predicate.entity with parameters of type LootContext