枚举的使用
org.bukkit.inventory.recipe.CraftingBookCategory
使用CraftingBookCategory的程序包
程序包
说明
参与操作玩家物品栏和物品交互的类.
New location for recipe-related classes.
-
org.bukkit.inventory中CraftingBookCategory的使用
参数类型为CraftingBookCategory的org.bukkit.inventory中的方法修饰符和类型方法说明voidCraftingRecipe.setCategory(@NotNull CraftingBookCategory category) 设置此配方在配方书中出现的类别。 -
org.bukkit.inventory.recipe中CraftingBookCategory的使用
修饰符和类型方法说明static CraftingBookCategory返回带有指定名称的该类型的枚举常量。static CraftingBookCategory[]CraftingBookCategory.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。