summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-17 08:35:37 +1000
committermd_5 <git@md-5.net>2018-08-17 08:35:37 +1000
commit5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614 (patch)
tree202fa55c91fd6971ddb3663319dbb4ee85183bba
parentb7af60cc8e7164c26d307898d955fd12d21d6ff8 (diff)
downloadbukkit-5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614.tar
bukkit-5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614.tar.gz
bukkit-5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614.tar.lz
bukkit-5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614.tar.xz
bukkit-5d659aa0e44dfb8ec758f910f0a4d0d1dcddd614.zip
Fix Material.createBlockData methods
-rw-r--r--src/main/java/org/bukkit/Material.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
index dc97991f..a885ca98 100644
--- a/src/main/java/org/bukkit/Material.java
+++ b/src/main/java/org/bukkit/Material.java
@@ -1981,7 +1981,7 @@ public enum Material implements Keyed {
}
/**
- * Creates a new {@link BlockData} instance for the specified Material, with
+ * Creates a new {@link BlockData} instance for this Material, with
* all properties initialized to unspecified defaults.
*
* @param consumer consumer to run on new instance before returning
@@ -1992,15 +1992,16 @@ public enum Material implements Keyed {
}
/**
- * Creates a new {@link BlockData} instance with material and properties
- * parsed from provided data.
+ * Creates a new {@link BlockData} instance for this Material, with all
+ * properties initialized to unspecified defaults, except for those provided
+ * in data.
*
* @param data data string
* @return new data instance
* @throws IllegalArgumentException if the specified data is not valid
*/
public BlockData createBlockData(String data) throws IllegalArgumentException {
- return Bukkit.createBlockData(data);
+ return Bukkit.createBlockData(this, data);
}
/**