Skip to content
On this page
通用

KattonRecipeApi

common/src/main/kotlin/top/katton/api/dpcaller/KattonRecipeApi.kt
向玩家授予配方进度。

giveRecipes

giveRecipes通用函数
kotlin
fun giveRecipes(players: Collection<ServerPlayer>, recipes: Collection<RecipeHolder<*>>)

向玩家授予配方进度。

参数

参数说明
players目标玩家。
recipes要授予的配方集合。

takeRecipes

takeRecipes通用函数
kotlin
fun takeRecipes(players: Collection<ServerPlayer>, recipes: Collection<RecipeHolder<*>>)

从玩家处撤销配方进度。

参数

参数说明
players目标玩家。
recipes要撤销的配方集合。