diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-22 17:26:05 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-22 17:26:05 +0000 |
commit | 3d7d4a47d95a7332699397c8d1e93439612195c9 (patch) | |
tree | ddde81a55ef0f9570c3bc4d94478daa0bd093427 | |
parent | 968c849b139a14743a1bf81fbfce27b45c612b76 (diff) | |
download | Essentials-3d7d4a47d95a7332699397c8d1e93439612195c9.tar Essentials-3d7d4a47d95a7332699397c8d1e93439612195c9.tar.gz Essentials-3d7d4a47d95a7332699397c8d1e93439612195c9.tar.lz Essentials-3d7d4a47d95a7332699397c8d1e93439612195c9.tar.xz Essentials-3d7d4a47d95a7332699397c8d1e93439612195c9.zip |
Bukkit R0.3 api updates.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbreak.java | 6 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/craftbukkit/FakeInventory.java | 18 |
2 files changed, 23 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java index a03c24264..406230401 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java @@ -2,10 +2,13 @@ package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; +import java.util.ArrayList; +import java.util.List; import org.bukkit.Material; import org.bukkit.Server; import org.bukkit.block.Block; import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.inventory.ItemStack; public class Commandbreak extends EssentialsCommand @@ -32,7 +35,8 @@ public class Commandbreak extends EssentialsCommand { throw new Exception(_("noBreakBedrock")); } - final BlockBreakEvent event = new BlockBreakEvent(block, user.getBase()); + final List<ItemStack> list = (List<ItemStack>)block.getDrops(); + final BlockBreakEvent event = new BlockBreakEvent(block, user.getBase(), list); server.getPluginManager().callEvent(event); if (event.isCancelled()) { diff --git a/Essentials/src/com/earth2me/essentials/craftbukkit/FakeInventory.java b/Essentials/src/com/earth2me/essentials/craftbukkit/FakeInventory.java index 01e7bd5b2..8456c956e 100644 --- a/Essentials/src/com/earth2me/essentials/craftbukkit/FakeInventory.java +++ b/Essentials/src/com/earth2me/essentials/craftbukkit/FakeInventory.java @@ -222,4 +222,22 @@ public class FakeInventory implements Inventory { throw new UnsupportedOperationException("Not supported yet."); } + + @Override + public int getMaxStackSize() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setMaxStackSize(int size) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public ListIterator<ItemStack> iterator(int index) + { + throw new UnsupportedOperationException("Not supported yet."); + } } |