Package-level declarations

Functions

Link copied to clipboard
fun createRecipeChoiceItem(itemStacks: List<ItemStack>): Item
fun createRecipeChoiceItem(itemProviders: List<ItemProvider>): Item
fun createRecipeChoiceItem(recipeChoice: RecipeChoice): Item
Link copied to clipboard
fun Player.showRecipes(id: String): Boolean

Tries to open the recipe explorer for the recipes for id, and returns whether the attempt was successful, i.e. if there were any recipes for the item.

fun Player.showRecipes(item: ItemStack): Boolean

Tries to open the recipe explorer for the recipes of item, and returns whether the attempt was successful, i.e. if there were any recipes for the item.

Link copied to clipboard
fun Player.showUsages(id: String): Boolean

Tries to open the recipe explorer for the usages for id, and returns whether the attempt was successful, i.e. if there were any usages for the item.

fun Player.showUsages(item: ItemStack): Boolean

Tries to open the recipe explorer for the usages of item, and returns whether the attempt was successful, i.e. if there were any usages for the item.