接口的使用
org.bukkit.inventory.meta.components.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
.修饰符和类型方法说明boolean
ToolComponent.removeRule
(@NotNull ToolComponent.ToolRule rule) Remove the givenToolComponent.ToolRule
from this tool.修饰符和类型方法说明void
ToolComponent.setRules
(@NotNull List<ToolComponent.ToolRule> rules) Set the list ofToolRules
to apply to this tool.