package uk.co.eluinhost.ultrahardcore.borders;

/**
 * Holds all the information about a border
 *
 * @author ghowden
 */
public class BorderParams {

    private final int m_xCoord;
    private final int m_zCoord;
    private final String m_worldName;
    private final int m_blockID;
    private final int m_blockMeta;
    private final int m_radius;
    private final String m_typeID;

    public BorderParams(int x, int z, int radius, String typeID, String worldName, int blockID, int blockMeta) {
        m_xCoord = x;
        m_zCoord = z;
        m_worldName = worldName;
        m_blockID = blockID;
        m_blockMeta = blockMeta;
        m_radius = radius;
        m_typeID = typeID;
    }

    public int getX() {
        return m_xCoord;
    }

    public int getZ() {
        return m_zCoord;
    }

    public String getWorldName() {
        return m_worldName;
    }

    public int getBlockID() {
        return m_blockID;
    }

    public int getBlockMeta() {
        return m_blockMeta;
    }

    public int getRadius() {
        return m_radius;
    }

    public String getTypeID() {
        return m_typeID;
    }
}

@@ -41,16 +41,45 @@
 rders;%0A%0A
+import org.bukkit.Location;%0A%0A
 /**%0A * H
@@ -195,90 +195,27 @@
 nal 
-int m_xCoord;%0A    private final int m_zCoord;%0A    private final String m_worldName
+Location m_location
 ;%0A  
@@ -356,98 +356,227 @@
     
-public BorderParams(int x, int z, int radius, String typeID, String worldName, int
+/**%0A     * Create new parameters for border creation%0A     * @param location the center location%0A     * @param typeID the ID of the border creator%0A     * @param radius the radius to give the creator%0A     * @param
  blockID
 , in
@@ -575,102 +575,219 @@
 ckID
-, int
+ the
  block
-Meta) %7B%0A        m_xCoord = x;%0A        m_zCoord = z;%0A        m_worldName = worldName
+ ID to use%0A     * @param blockMeta the data value for the block%0A     */%0A    public BorderParams(Location location, String typeID, int radius, int blockID, int blockMeta) %7B%0A        m_location = location
 ;%0A  
@@ -915,59 +915,50 @@
     
-public int getX() %7B
+/**
 %0A     
-   
+* @
 return 
-m_xCoord;
+center location
 %0A    
-%7D%0A
+ */
 %0A   
@@ -969,16 +969,26 @@
 lic 
-int getZ
+Location getCenter
 () %7B
@@ -1009,14 +1009,16 @@
 n m_
-zCoord
+location
 ;%0A  
@@ -1030,73 +1030,54 @@
     
-public String getWorldName() %7B
+/**
 %0A     
-   
+* @
 return 
-m_worldName;
+the block ID to use
 %0A    
-%7D%0A
+ */
 %0A   
@@ -1128,32 +1128,84 @@
 blockID;%0A    %7D%0A%0A
+    /**%0A     * @return the block data value%0A     */%0A
     public int g
@@ -1247,32 +1247,77 @@
 ockMeta;%0A    %7D%0A%0A
+    /**%0A     * @return radius to use%0A     */%0A
     public int g
@@ -1357,24 +1357,69 @@
 ius;%0A    %7D%0A%0A
+    /**%0A     * @return the border ID%0A     */%0A
     public S

use Location instead of X/Z/name