geforkt von Mirrors/Paper
SPIGOT-5341: Add Material.isAir
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
public void testItem() {
|
||||
if (material == Material.AIR) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren