Uses of Interface
org.bukkit.inventory.meta.components.ToolComponent.ToolRule
Package
Description
Isolated components which may form part of item meta.
-
Uses of ToolComponent.ToolRule in org.bukkit.inventory.meta.components
Modifier and TypeMethodDescriptionToolComponent.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
.Modifier and TypeMethodDescriptionToolComponent.getRules()
Get the list ofToolRules
that apply to this tool.Modifier and TypeMethodDescriptionboolean
ToolComponent.removeRule
(@NotNull ToolComponent.ToolRule rule) Remove the givenToolComponent.ToolRule
from this tool.Modifier and TypeMethodDescriptionvoid
ToolComponent.setRules
(@NotNull List<ToolComponent.ToolRule> rules) Set the list ofToolRules
to apply to this tool.