Add BlockData#getAsString(boolean) to hide unspecified states

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot
2018-12-16 18:21:29 -05:00
parent 7114dbbb9d
commit 42831b84cd
4 changed files with 93 additions and 15 deletions

View File

@@ -43,15 +43,6 @@
}
}
@@ -646,7 +653,7 @@
}
public String toString() {
- return "Block{" + IRegistry.BLOCK.getKey(this) + "}";
+ return IRegistry.BLOCK.getKey(this).toString(); // CraftBukkit - cheap hack
}
public static boolean c(Block block) {
@@ -1395,8 +1402,14 @@
}