From 373c958596dc5a142148637736dc751d346c6348 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 8 Jan 2011 12:24:27 -0800 Subject: Changed Block.setTypeID() to return a boolean indicating whether the block was changed (as provided by Minecraft). --- src/main/java/org/bukkit/Block.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/Block.java b/src/main/java/org/bukkit/Block.java index 7e8ec5d4..90d6523d 100644 --- a/src/main/java/org/bukkit/Block.java +++ b/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
-- cgit v1.2.3