Uses of Class
net.minecraft.loot.context.LootContext
-
Uses of LootContext in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type LootContext Modifier and Type Method Description booleanBredAnimalsCriterion.Conditions. matches(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext)booleanCuredZombieVillagerCriterion.Conditions. matches(LootContext zombieContext, LootContext villagerContext)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)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 LootContext Modifier and Type Method Description booleanChanneledLightningCriterion.Conditions. matches(Collection<? extends LootContext> victims)booleanKilledByCrossbowCriterion.Conditions. matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount) -
Uses of LootContext in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type LootContext Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctionsprivate Predicate<LootContext>LootPool. predicateMethods in net.minecraft.loot with parameters of type LootContext Modifier and Type Method Description voidLootPool. addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidLootChoice. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)List<ItemStack>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 LootContext Modifier and Type Field Description private Predicate<LootContext>AlternativeLootCondition. predicateprivate Predicate<LootContext>LootConditionManager.AndCondition. predicateMethods in net.minecraft.loot.condition with parameters of type LootContext Modifier and Type Method Description protected booleanEntityScoresLootCondition. entityScoreIsInRange(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range)booleanAlternativeLootCondition. test(LootContext lootContext)booleanBlockStatePropertyLootCondition. test(LootContext lootContext)booleanDamageSourcePropertiesLootCondition. test(LootContext lootContext)booleanEntityPropertiesLootCondition. test(LootContext lootContext)booleanEntityScoresLootCondition. test(LootContext lootContext)booleanInvertedLootCondition. test(LootContext lootContext)booleanKilledByPlayerLootCondition. test(LootContext lootContext)booleanLocationCheckLootCondition. test(LootContext lootContext)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 LootContext Modifier and Type Method Description LootContextLootContext.Builder. build(LootContextType type)Methods in net.minecraft.loot.context with parameters of type LootContext Modifier and Type Method Description voidLootContext.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 LootContext Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctionsprivate Predicate<LootContext>LootPoolEntry. conditionPredicateMethods in net.minecraft.loot.entry with parameters of type LootContext Modifier and Type Method Description 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 booleanLootPoolEntry. test(LootContext context) -
Uses of LootContext in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type LootContext Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOPprivate Predicate<LootContext>ConditionalLootFunction. predicateMethods in net.minecraft.loot.function that return types with arguments of type LootContext Modifier and Type Method Description static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)Methods in net.minecraft.loot.function with parameters of type LootContext Modifier and Type Method Description ItemStackConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)ItemStackLootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)static UnaryOperator<Text>SetNameLootFunction. applySourceEntity(LootContext context, LootContext.EntityTarget sourceEntity)ItemStackApplyBonusLootFunction. process(ItemStack stack, LootContext context)protected abstract ItemStackConditionalLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNameLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNbtLootFunction. process(ItemStack stack, LootContext context)protected ItemStackCopyStateFunction. process(ItemStack stack, LootContext context)ItemStackEnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)ItemStackEnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)ItemStackExplorationMapLootFunction. process(ItemStack stack, LootContext context)ItemStackExplosionDecayLootFunction. process(ItemStack stack, LootContext context)ItemStackFillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)ItemStackFurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)ItemStackLimitCountLootFunction. process(ItemStack stack, LootContext context)ItemStackLootingEnchantLootFunction. process(ItemStack stack, LootContext context)ItemStackSetAttributesLootFunction. process(ItemStack stack, LootContext context)protected ItemStackSetBannerPatternFunction. process(ItemStack stack, LootContext context)ItemStackSetContentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetCountLootFunction. process(ItemStack stack, LootContext context)ItemStackSetDamageLootFunction. process(ItemStack stack, LootContext context)ItemStackSetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLootTableLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLoreLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNameLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNbtLootFunction. process(ItemStack stack, LootContext context)ItemStackSetStewEffectLootFunction. process(ItemStack stack, LootContext context)Method parameters in net.minecraft.loot.function with type arguments of type LootContext Modifier and Type Method Description static Consumer<ItemStack>LootFunction. 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 LootContext Modifier and Type Method Description intBoundedIntUnaryOperator.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 LootContext Modifier and Type Method Description @Nullable NbtElementContextLootNbtProvider.Target. getNbt(LootContext context)@Nullable NbtElementContextLootNbtProvider. getNbtTag(LootContext context)@Nullable NbtElementLootNbtProvider. getNbtTag(LootContext context)@Nullable NbtElementStorageLootNbtProvider. getNbtTag(LootContext context) -
Uses of LootContext in net.minecraft.loot.provider.number
Methods in net.minecraft.loot.provider.number with parameters of type LootContext Modifier and Type Method Description floatBinomialLootNumberProvider. 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 LootContext Modifier and Type Method Description @Nullable StringContextLootScoreProvider. getName(LootContext context)@Nullable StringFixedLootScoreProvider. getName(LootContext context)@Nullable StringLootScoreProvider. getName(LootContext context) -
Uses of LootContext in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type LootContext Modifier and Type Field Description private Predicate<LootContext>EntityPredicate.Extended. combinedConditionMethods in net.minecraft.predicate.entity that return LootContext Modifier and Type Method Description static LootContextEntityPredicate. createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)Methods in net.minecraft.predicate.entity with parameters of type LootContext Modifier and Type Method Description booleanEntityPredicate.Extended. test(LootContext context) -
Uses of LootContext in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type LootContext Modifier and Type Method Description private static intLootCommand. getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)