mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-11 22:33:15 +01:00
SPIGOT-5341: Add Material.isAir
This commit is contained in:
parent
683bae0670
commit
46351e1783
@ -195,6 +195,15 @@ public class PerMaterialTest extends AbstractTestingBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAir() {
|
||||||
|
if (material.isBlock()) {
|
||||||
|
assertThat(material.isAir(), is(equalTo(CraftMagicNumbers.getBlock(material).getBlockData().isAir())));
|
||||||
|
} else {
|
||||||
|
assertThat(material.isAir(), is(equalTo(false)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testItem() {
|
public void testItem() {
|
||||||
if (material == Material.AIR) {
|
if (material == Material.AIR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user