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 TypeMethodDescriptionbooleanmatches(org.bukkit.Material material) Returns true if the givenMaterialmatches the conditions of this MaterialMatcher.
-
Method Details
-
matches
boolean matches(org.bukkit.Material material) Returns true if the givenMaterialmatches the conditions of this MaterialMatcher.- Parameters:
material- theMaterialto check- Returns:
- true if it matches, false otherwise
-