接口的使用
org.bukkit.inventory.meta.components.ToolComponent.ToolRule
使用ToolComponent.ToolRule的程序包
-
org.bukkit.inventory.meta.components中ToolComponent.ToolRule的使用
修饰符和类型方法说明ToolComponent.addRule(@NotNull Collection<Material> blocks, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types.ToolComponent.addRule(@NotNull Material block, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a specific block type.ToolComponent.addRule(@NotNull Tag<Material> tag, @Nullable Float speed, @Nullable Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types represented by a blockTag.返回变量类型为ToolComponent.ToolRule的类型的org.bukkit.inventory.meta.components中的方法修饰符和类型方法说明booleanToolComponent.removeRule(@NotNull ToolComponent.ToolRule rule) Remove the givenToolComponent.ToolRulefrom this tool.修饰符和类型方法说明voidToolComponent.setRules(@NotNull List<ToolComponent.ToolRule> rules) Set the list ofToolRulesto apply to this tool.