Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
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