Package net.glowstone.inventory
Interface MaterialMatcher
- All Known Implementing Classes:
ClothType
,MaterialToolType
,ToolType
public interface MaterialMatcher
An interface for checking predicates on Materials.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(org.bukkit.Material material) Returns true if the givenMaterial
matches the conditions of this MaterialMatcher.
-
Method Details
-
matches
boolean matches(org.bukkit.Material material) Returns true if the givenMaterial
matches the conditions of this MaterialMatcher.- Parameters:
material
- theMaterial
to check- Returns:
- true if it matches, false otherwise
-