From 7beac92232b8f687669c4f1abf264058de76a8c2 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Fri, 4 Nov 2011 16:39:56 +0100 Subject: [PATCH] Added a deprecated delegate for storeDroppedBlock. --- .../java/com/sk89q/worldedit/bags/BlockBag.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/bags/BlockBag.java b/src/main/java/com/sk89q/worldedit/bags/BlockBag.java index 23bf0ced7..0910dab17 100644 --- a/src/main/java/com/sk89q/worldedit/bags/BlockBag.java +++ b/src/main/java/com/sk89q/worldedit/bags/BlockBag.java @@ -28,6 +28,19 @@ import com.sk89q.worldedit.blocks.*; * @author sk89q */ public abstract class BlockBag { + /** + * Stores a block as if it was mined. + * + * @param id + * @param data + * @throws BlockBagException + * @deprecated Use {@link BlockBag#storeDroppedBlock(int, int)} + */ + @Deprecated + public void storeDroppedBlock(int id) throws BlockBagException { + storeDroppedBlock(id, 0); + } + /** * Stores a block as if it was mined. *