From 1772d02d80800023a0982c92b8701e16bf99c628 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Tue, 7 Feb 2012 17:24:22 -0800 Subject: [PATCH] Made BlockBag use WorldVectors for add(Single)SourcePosition --- src/main/java/com/sk89q/worldedit/bags/BlockBag.java | 6 +++--- .../com/sk89q/worldedit/bukkit/BukkitPlayerBlockBag.java | 6 +++--- .../java/com/sk89q/worldedit/spout/SpoutPlayerBlockBag.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/bags/BlockBag.java b/src/main/java/com/sk89q/worldedit/bags/BlockBag.java index b9be37d68..ef5c380f0 100644 --- a/src/main/java/com/sk89q/worldedit/bags/BlockBag.java +++ b/src/main/java/com/sk89q/worldedit/bags/BlockBag.java @@ -19,7 +19,7 @@ package com.sk89q.worldedit.bags; -import com.sk89q.worldedit.Vector; +import com.sk89q.worldedit.WorldVector; import com.sk89q.worldedit.blocks.*; /** @@ -189,12 +189,12 @@ public abstract class BlockBag { * * @param pos */ - public abstract void addSourcePosition(Vector pos); + public abstract void addSourcePosition(WorldVector pos); /** * Adds a position to be used a source. * * @param pos */ - public abstract void addSingleSourcePosition(Vector pos); + public abstract void addSingleSourcePosition(WorldVector pos); } diff --git a/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayerBlockBag.java b/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayerBlockBag.java index 324a842e7..6b97f2a52 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayerBlockBag.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayerBlockBag.java @@ -19,9 +19,9 @@ package com.sk89q.worldedit.bukkit; +import com.sk89q.worldedit.WorldVector; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; -import com.sk89q.worldedit.Vector; import com.sk89q.worldedit.bags.*; import com.sk89q.worldedit.blocks.BaseItem; import com.sk89q.worldedit.blocks.BaseItemStack; @@ -214,7 +214,7 @@ public class BukkitPlayerBlockBag extends BlockBag { * @param pos */ @Override - public void addSourcePosition(Vector pos) { + public void addSourcePosition(WorldVector pos) { } /** @@ -223,6 +223,6 @@ public class BukkitPlayerBlockBag extends BlockBag { * @param pos */ @Override - public void addSingleSourcePosition(Vector pos) { + public void addSingleSourcePosition(WorldVector pos) { } } diff --git a/src/main/java/com/sk89q/worldedit/spout/SpoutPlayerBlockBag.java b/src/main/java/com/sk89q/worldedit/spout/SpoutPlayerBlockBag.java index d08dea226..f861e933c 100644 --- a/src/main/java/com/sk89q/worldedit/spout/SpoutPlayerBlockBag.java +++ b/src/main/java/com/sk89q/worldedit/spout/SpoutPlayerBlockBag.java @@ -19,7 +19,7 @@ package com.sk89q.worldedit.spout; -import com.sk89q.worldedit.Vector; +import com.sk89q.worldedit.WorldVector; import com.sk89q.worldedit.bags.BlockBag; import com.sk89q.worldedit.bags.BlockBagException; import com.sk89q.worldedit.bags.OutOfBlocksException; @@ -222,7 +222,7 @@ public class SpoutPlayerBlockBag extends BlockBag { * @param pos */ @Override - public void addSourcePosition(Vector pos) { + public void addSourcePosition(WorldVector pos) { } /** @@ -231,6 +231,6 @@ public class SpoutPlayerBlockBag extends BlockBag { * @param pos */ @Override - public void addSingleSourcePosition(Vector pos) { + public void addSingleSourcePosition(WorldVector pos) { } }