summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2014-12-22 19:47:50 +1100
committermd_5 <git@md-5.net>2014-12-22 19:47:50 +1100
commitd4c3dd53a89ac747f1af4e5c2a7a797336a18699 (patch)
tree05e8bd648f83c472646bf203dc731bd4725e65c1
parent63f80e2e7e8e6cb29a3cb473d2cb4c238e4efcbe (diff)
downloadbukkit-d4c3dd53a89ac747f1af4e5c2a7a797336a18699.tar
bukkit-d4c3dd53a89ac747f1af4e5c2a7a797336a18699.tar.gz
bukkit-d4c3dd53a89ac747f1af4e5c2a7a797336a18699.tar.lz
bukkit-d4c3dd53a89ac747f1af4e5c2a7a797336a18699.tar.xz
bukkit-d4c3dd53a89ac747f1af4e5c2a7a797336a18699.zip
SPIGOT-204: Add way to set block type without using IDs or updating physics.
-rw-r--r--src/main/java/org/bukkit/block/Block.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
index 38e84415..235c15bd 100644
--- a/src/main/java/org/bukkit/block/Block.java
+++ b/src/main/java/org/bukkit/block/Block.java
@@ -187,6 +187,14 @@ public interface Block extends Metadatable {
void setType(Material type);
/**
+ * Sets the type of this block
+ *
+ * @param type Material to change this block to
+ * @param applyPhysics False to cancel physics on the changed block.
+ */
+ void setType(Material type, boolean applyPhysics);
+
+ /**
* Sets the type-id of this block
*
* @param type Type-Id to change this block to