From b94f401b3ae37d4f18c80b06d2cc326655f22db8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 8 Jan 2011 12:24:27 -0800 Subject: [PATCH] Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft). By: sk89q --- paper-api/src/main/java/org/bukkit/Block.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/Block.java b/paper-api/src/main/java/org/bukkit/Block.java index 7e8ec5d4dd..90d6523d76 100644 --- a/paper-api/src/main/java/org/bukkit/Block.java +++ b/paper-api/src/main/java/org/bukkit/Block.java @@ -128,8 +128,9 @@ public interface Block { * Sets the type-ID of this block * * @param type Type-ID to change this block to + * @return whether the block was changed */ - void setTypeID(int type); + boolean setTypeID(int type); /** * Gets the face relation of this block compared to the given block