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
(@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
.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
(@NotNull 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
(@NotNull List<ToolComponent.ToolRule> rules) Set the list ofToolRules
to apply to this tool.