类的使用
net.minecraft.loot.context.LootContext
-
-
net.minecraft.advancement.criterion中LootContext的使用
参数类型为LootContext的net.minecraft.advancement.criterion中的方法 修饰符和类型 方法 说明 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)类型变量类型为LootContext的net.minecraft.advancement.criterion中的方法参数 修饰符和类型 方法 说明 booleanChanneledLightningCriterion.Conditions. matches(Collection<? extends LootContext> victims)booleanKilledByCrossbowCriterion.Conditions. matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount) -
net.minecraft.loot中LootContext的使用
类型参数类型为LootContext的net.minecraft.loot中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctionsprivate Predicate<LootContext>LootPool. predicate参数类型为LootContext的net.minecraft.loot中的方法 修饰符和类型 方法 说明 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) -
net.minecraft.loot.condition中LootContext的使用
类型参数类型为LootContext的net.minecraft.loot.condition中的字段 修饰符和类型 字段 说明 private Predicate<LootContext>AlternativeLootCondition. predicateprivate Predicate<LootContext>LootConditionManager.AndCondition. predicate参数类型为LootContext的net.minecraft.loot.condition中的方法 修饰符和类型 方法 说明 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) -
net.minecraft.loot.context中LootContext的使用
返回LootContext的net.minecraft.loot.context中的方法 修饰符和类型 方法 说明 LootContextLootContext.Builder. build(LootContextType type)参数类型为LootContext的net.minecraft.loot.context中的方法 修饰符和类型 方法 说明 voidLootContext.Dropper. add(LootContext context, Consumer<ItemStack> consumer) -
net.minecraft.loot.entry中LootContext的使用
类型参数类型为LootContext的net.minecraft.loot.entry中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctionsprivate Predicate<LootContext>LootPoolEntry. conditionPredicate参数类型为LootContext的net.minecraft.loot.entry中的方法 修饰符和类型 方法 说明 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) -
net.minecraft.loot.function中LootContext的使用
类型参数类型为LootContext的net.minecraft.loot.function中的字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOPprivate Predicate<LootContext>ConditionalLootFunction. predicate返回变量类型为LootContext的类型的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)参数类型为LootContext的net.minecraft.loot.function中的方法 修饰符和类型 方法 说明 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)类型变量类型为LootContext的net.minecraft.loot.function中的方法参数 修饰符和类型 方法 说明 static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) -
net.minecraft.loot.operator中LootContext的使用
参数类型为LootContext的net.minecraft.loot.operator中的方法 修饰符和类型 方法 说明 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) -
net.minecraft.loot.provider.nbt中LootContext的使用
参数类型为LootContext的net.minecraft.loot.provider.nbt中的方法 修饰符和类型 方法 说明 @Nullable TagContextLootNbtProvider.Target. getNbt(LootContext context)@Nullable TagContextLootNbtProvider. getNbtTag(LootContext context)@Nullable TagLootNbtProvider. getNbtTag(LootContext context)@Nullable TagStorageLootNbtProvider. getNbtTag(LootContext context) -
net.minecraft.loot.provider.number中LootContext的使用
参数类型为LootContext的net.minecraft.loot.provider.number中的方法 修饰符和类型 方法 说明 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) -
net.minecraft.loot.provider.score中LootContext的使用
参数类型为LootContext的net.minecraft.loot.provider.score中的方法 修饰符和类型 方法 说明 @Nullable StringContextLootScoreProvider. getName(LootContext context)@Nullable StringFixedLootScoreProvider. getName(LootContext context)@Nullable StringLootScoreProvider. getName(LootContext context) -
net.minecraft.predicate.entity中LootContext的使用
类型参数类型为LootContext的net.minecraft.predicate.entity中的字段 修饰符和类型 字段 说明 private Predicate<LootContext>EntityPredicate.Extended. combinedCondition返回LootContext的net.minecraft.predicate.entity中的方法 修饰符和类型 方法 说明 static LootContextEntityPredicate. createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)参数类型为LootContext的net.minecraft.predicate.entity中的方法 修饰符和类型 方法 说明 booleanEntityPredicate.Extended. test(LootContext context) -
net.minecraft.server.command中LootContext的使用
参数类型为LootContext的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static intLootCommand. getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)
-