package uk.co.eluinhost.ultrahardcore.borders;

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

    private int x;
    private int z;
    private String worldName;
    private int blockID;
    private int blockMeta;
    private int radius;
    private String typeID;

    public BorderParams(int x, int z, int radius, String typeID, String worldName, int blockID, int blockMeta) {
        setX(x);
        setZ(z);
        setWorldName(worldName);
        setBlockID(blockID);
        setBlockMeta(blockMeta);
        setRadius(radius);
        setTypeID(typeID);
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getZ() {
        return z;
    }

    public void setZ(int z) {
        this.z = z;
    }

    public String getWorldName() {
        return worldName;
    }

    public void setWorldName(String worldName) {
        this.worldName = worldName;
    }

    public int getBlockID() {
        return blockID;
    }

    public void setBlockID(int blockID) {
        this.blockID = blockID;
    }

    public int getBlockMeta() {
        return blockMeta;
    }

    public void setBlockMeta(int blockMeta) {
        this.blockMeta = blockMeta;
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public String getTypeID() {
        return typeID;
    }

    public void setTypeID(String typeID) {
        this.typeID = typeID;
    }
}

@@ -160,32 +160,58 @@
 ate 
-int x;%0A    private int z
+final int m_xCoord;%0A    private final int m_zCoord
 ;%0A  
@@ -220,23 +220,31 @@
 private 
+final 
 String 
+m_
 worldNam
@@ -254,28 +254,36 @@
     private 
+final 
 int 
+m_
 blockID;%0A   
@@ -291,20 +291,28 @@
 private 
+final 
 int 
+m_
 blockMet
@@ -326,20 +326,28 @@
 private 
+final 
 int 
+m_
 radius;%0A
@@ -358,23 +358,31 @@
 private 
+final 
 String 
+m_
 typeID;%0A
@@ -507,32 +507,42 @@
     
-setX(x);%0A        setZ(z)
+m_xCoord = x;%0A        m_zCoord = z
 ;%0A  
@@ -547,28 +547,27 @@
         
-setW
+m_w
 orldName
 (worldNa
@@ -558,17 +558,19 @@
 orldName
-(
+ = 
 worldNam
@@ -570,17 +570,16 @@
 orldName
-)
 ;%0A      
@@ -584,27 +584,27 @@
     
-setB
+m_b
 lockID
-(
+ = 
 blockID
-)
 ;%0A  
@@ -609,28 +609,27 @@
         
-setB
+m_b
 lockMeta
 (blockMe
@@ -620,17 +620,19 @@
 lockMeta
-(
+ = 
 blockMet
@@ -632,17 +632,16 @@
 lockMeta
-)
 ;%0A      
@@ -646,25 +646,25 @@
     
-setR
+m_r
 adius
-(
+ = 
 radius
-)
 ;%0A  
@@ -673,25 +673,25 @@
     
-setT
+m_t
 ypeID
-(
+ = 
 typeID
-)
 ;%0A  
@@ -738,900 +738,391 @@
 urn 
-x;%0A    %7D%0A%0A    public void setX(int x) %7B%0A        this.x = x;%0A    %7D%0A%0A    public int getZ() %7B%0A        return z;%0A    %7D%0A%0A    public void setZ(int z) %7B%0A        this.z = z;%0A    %7D%0A%0A    public String getWorldName() %7B%0A        return worldName;%0A    %7D%0A%0A    public void setWorldName(String worldName) %7B%0A        this.worldName = worldName;%0A    %7D%0A%0A    public int getBlockID() %7B%0A        return blockID;%0A    %7D%0A%0A    public void setBlockID(int blockID) %7B%0A        this.blockID = blockID;%0A    %7D%0A%0A    public int getBlockMeta() %7B%0A        return blockMeta;%0A    %7D%0A%0A    public void setBlockMeta(int blockMeta) %7B%0A        this.blockMeta = blockMeta;%0A    %7D%0A%0A    public int getRadius() %7B%0A        return radius;%0A    %7D%0A%0A    public void setRadius(int radius) %7B%0A        this.radius = radius;%0A    %7D%0A%0A    public String getTypeID() %7B%0A        return typeID;%0A    %7D%0A%0A    public void setTypeID(String typeID) %7B%0A        this.typeID = 
+m_xCoord;%0A    %7D%0A%0A    public int getZ() %7B%0A        return m_zCoord;%0A    %7D%0A%0A    public String getWorldName() %7B%0A        return m_worldName;%0A    %7D%0A%0A    public int getBlockID() %7B%0A        return m_blockID;%0A    %7D%0A%0A    public int getBlockMeta() %7B%0A        return m_blockMeta;%0A    %7D%0A%0A    public int getRadius() %7B%0A        return m_radius;%0A    %7D%0A%0A    public String getTypeID() %7B%0A        return m_
 type

remove setters, set members to final