return ParameterUtils.enumCases(Material.values());
}
@Test
public void hasAllMaterials() {
ItemType type = table.getItem(material);
// special cases
if (material == Material.AIR) {
assertNull("ItemType exists for air: " + type, type);
return;
} else if (material == Material.LOCKED_CHEST) {
// LOCKED_CHEST was superseded by STAINED_GLASS
return;
}
// check that it exists
assertNotNull("ItemType does not exist for " + material, type);
// check that its block status is correct
assertTrue("Block status mismatch between " + material + "(" + material.isBlock() + ") and " + type, (type instanceof BlockType) == material.isBlock());
// check that material returned matches
assertEquals("ItemType returned wrong material", material, type.getMaterial());
// check that max stack size matches
assertEquals("Maximum stack size was incorrect", material.getMaxStackSize(), type.getMaxStackSize());
}