Uses of Interface
org.bukkit.inventory.meta.components.ToolComponent.ToolRule
Packages that use ToolComponent.ToolRule
Package
Description
Isolated components which may form part of item meta.
-
Uses of ToolComponent.ToolRule in org.bukkit.inventory.meta.components
Methods in org.bukkit.inventory.meta.components that return ToolComponent.ToolRuleModifier 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
.Methods in org.bukkit.inventory.meta.components that return types with arguments of type ToolComponent.ToolRuleModifier and TypeMethodDescriptionToolComponent.getRules()
Get the list ofToolRules
that apply to this tool.Methods in org.bukkit.inventory.meta.components with parameters of type ToolComponent.ToolRuleModifier and TypeMethodDescriptionboolean
ToolComponent.removeRule
(ToolComponent.ToolRule rule) Remove the givenToolComponent.ToolRule
from this tool.Method parameters in org.bukkit.inventory.meta.components with type arguments of type ToolComponent.ToolRuleModifier and TypeMethodDescriptionvoid
ToolComponent.setRules
(List<ToolComponent.ToolRule> rules) Set the list ofToolRules
to apply to this tool.