Made BlockBag use WorldVectors for add(Single)SourcePosition

This commit is contained in:
zml2008 2012-02-07 17:24:22 -08:00
parent 1f921779fa
commit 1772d02d80
3 changed files with 9 additions and 9 deletions

View File

@ -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);
}

View File

@ -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) {
}
}

View File

@ -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) {
}
}