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 zombieContext, LootContext villagerContext) booleanEffectsChangedCriterion.Conditions.matches(ServerPlayerEntity player, @Nullable LootContext context) booleanFishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots) booleanPlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player, LootContext entityContext, DamageSource source, float dealt, float taken, boolean blocked) booleanSummonedEntityCriterion.Conditions.matches(LootContext summonedEntityContext) booleanTameAnimalCriterion.Conditions.matches(LootContext tamedEntityContext) booleanVillagerTradeCriterion.Conditions.matches(LootContext merchantContext, ItemStack stack) booleanLightningStrikeCriterion.Conditions.test(LootContext lightning, List<LootContext> bystanders) booleanOnKilledCriterion.Conditions.test(ServerPlayerEntity player, LootContext killedEntityContext, DamageSource killingBlow) booleanPlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext context) booleanTargetHitCriterion.Conditions.test(LootContext projectileContext, Vec3d hitPos, int signalStrength) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext) 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.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) LootTable.generateLoot(LootContext context) voidLootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.supplyInventory(Inventory inventory, LootContext context) 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.predicateprivate final Predicate<LootContext>LootConditionManager.AndCondition.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) booleanEntityPropertiesLootCondition.test(LootContext lootContext) booleanEntityScoresLootCondition.test(LootContext lootContext) final booleanInvertedLootCondition.test(LootContext lootContext) booleanKilledByPlayerLootCondition.test(LootContext lootContext) booleanLocationCheckLootCondition.test(LootContext lootContext) final booleanLootConditionManager.AndCondition.test(LootContext lootContext) booleanMatchToolLootCondition.test(LootContext lootContext) booleanRandomChanceLootCondition.test(LootContext lootContext) booleanRandomChanceWithLootingLootCondition.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) -
Uses of LootContext in net.minecraft.loot.context
Methods in net.minecraft.loot.context that return LootContextMethods in net.minecraft.loot.context with parameters of type LootContextModifier and TypeMethodDescriptionvoidLootContext.Dropper.add(LootContext context, Consumer<ItemStack> consumer) -
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> LootFunctionManager.AndFunction.field_27905static 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(BiFunction<ItemStack, LootContext, ItemStack>[] lootFunctions) Methods in net.minecraft.loot.function with parameters of type LootContextModifier and TypeMethodDescriptionfinal ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) LootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) LootFunctionManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext) static UnaryOperator<Text>SetNameLootFunction.applySourceEntity(LootContext context, LootContext.EntityTarget sourceEntity) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateFunction.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) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternFunction.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) SetGoatHornSoundLootFunction.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) 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) -
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 TypeMethodDescriptionfloatBinomialLootNumberProvider.nextFloat(LootContext context) floatConstantLootNumberProvider.nextFloat(LootContext context) floatLootNumberProvider.nextFloat(LootContext context) floatScoreLootNumberProvider.nextFloat(LootContext context) floatUniformLootNumberProvider.nextFloat(LootContext context) intBinomialLootNumberProvider.nextInt(LootContext context) default intLootNumberProvider.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.getName(LootContext context) FixedLootScoreProvider.getName(LootContext context) LootScoreProvider.getName(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>EntityPredicate.Extended.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 -
Uses of LootContext in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type LootContextModifier and TypeMethodDescriptionprivate static intLootCommand.getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)