public interface MaterialSet
Magic does not distinguish between sets that need to be enumerable and sets that serve as a predicate.
| Modifier and Type | Method and Description |
|---|---|
Collection<org.bukkit.Material> |
getMaterials() |
MaterialSet |
not() |
boolean |
testBlock(org.bukkit.block.Block testBlock) |
boolean |
testItem(org.bukkit.inventory.ItemStack item) |
boolean |
testMaterial(org.bukkit.Material material)
Tests whether the specified material matches.
|
boolean |
testMaterialAndData(MaterialAndData targetMaterial) |
MaterialSet not()
Collection<org.bukkit.Material> getMaterials()
boolean testMaterial(org.bukkit.Material material)
material - The material to test.boolean testBlock(org.bukkit.block.Block testBlock)
boolean testItem(org.bukkit.inventory.ItemStack item)
boolean testMaterialAndData(MaterialAndData targetMaterial)
Copyright © 2021 elMakers. All rights reserved.