From d4c3dd53a89ac747f1af4e5c2a7a797336a18699 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 22 Dec 2014 19:47:50 +1100 Subject: SPIGOT-204: Add way to set block type without using IDs or updating physics. --- src/main/java/org/bukkit/block/Block.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ -186,6 +186,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 * -- cgit v1.2.3