Archiviert
13
0

rename Material.isAir to Material.isEmpty

represents what its more for, and aligns with future Minecraft goals
Dieser Commit ist enthalten in:
Aikar 2018-10-06 22:00:13 -04:00
Ursprung 6cc16bffe6
Commit 06eff136c8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 401ADFC9891FAAFE

Datei anzeigen

@ -1,11 +1,11 @@
From a73476b729503e004260a1b5c618ccdaec9678e7 Mon Sep 17 00:00:00 2001
From 96b6ec1a816d21b6c3eaabce56ccfa7c9d44afdb Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Sat, 6 Oct 2018 21:14:29 -0400
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
@@ -72,6 +72,7 @@ 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: