1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-03 13:27:23 +01:00

rename Material.isAir to Material.isEmpty

represents what its more for, and aligns with future Minecraft goals
This commit is contained in:
Aikar 2018-10-06 22:00:13 -04:00
parent 23866800be
commit 8cf0c2072f

View file

@ -5,7 +5,7 @@ Subject: [PATCH] Material API additions
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
index 83f8eca15..bf7313fdb 100644
index 83f8eca15..98775ea54 100644
--- a/src/main/java/org/bukkit/Material.java
+++ b/src/main/java/org/bukkit/Material.java
@@ -0,0 +0,0 @@ import org.bukkit.material.MaterialData;
@ -25,7 +25,7 @@ index 83f8eca15..bf7313fdb 100644
+ /**
+ * @return If the type is either AIR, CAVE_AIR or VOID_AIR
+ */
+ public boolean isAir() {
+ public boolean isEmpty() {
+ switch (this) {
+ case AIR:
+ case CAVE_AIR: