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
(Collection<Material> blocks, Float speed, Boolean correctForDrops) Add a new rule to this tool component, which provides further information about a collection of block types.Add a new rule to this tool component, which provides further information about a specific block type.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
(ToolComponent.ToolRule rule) Remove the givenToolComponent.ToolRule
from this tool.Modifier and TypeMethodDescriptionvoid
ToolComponent.setRules
(List<ToolComponent.ToolRule> rules) Set the list ofToolRules
to apply to this tool.