From 34d9beba8f7c36e31316762dea5406e6f19fe45a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 22 Dec 2014 19:47:50 +1100 Subject: [PATCH] SPIGOT-204: Add way to set block type without using IDs or updating physics. By: md_5 --- paper-api/src/main/java/org/bukkit/block/Block.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index 38e84415dd..235c15bdfe 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/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 *