package org.tournier.minecraftregionmanager;

import java.io.File;

public class RegionMark {
	// A region mark is defined by 4 items:
	private String worldName;
	private int x, z;
	private String regionName;
	
	// Constructor
    public RegionMark(String world, int rx, int rz, String name) {
        worldName = world;
        x = rx;
        z = rz;
        regionName = name;
    }
    
    public String getWorldName() {
    	return worldName;
    }
    
    public int getX() {
    	return x;
    }
    
    public int getZ() {
    	return z;
    }
    
    public String getRegionName() {
    	return regionName;
    }
    
    public File getFileName() {
    	File f = new File("./" + worldName + "/r." + x + "." + z + ".mca");
    	return f;
	}
    
    public String printMark() {
    	String s = worldName + ":" + x + "," + z + ":" + regionName + " (blocks " + (x*16*32) + "," + (z*16*32) + " to " + ((x*16*32)+511) + "," + ((z*16*32)+511) + ")";
    	return s;
    }
}

@@ -88,17 +88,18 @@
 gionMark
- 
+%0D%0A
 %7B%0D%0A%09// A
@@ -296,16 +296,21 @@
 ng name)
+%0D%0A   
  %7B%0D%0A    
@@ -436,24 +436,29 @@
 tWorldName()
+%0D%0A   
  %7B%0D%0A    %09ret
@@ -507,16 +507,21 @@
 t getX()
+%0D%0A   
  %7B%0D%0A    
@@ -566,16 +566,21 @@
 t getZ()
+%0D%0A   
  %7B%0D%0A    
@@ -633,24 +633,29 @@
 RegionName()
+%0D%0A   
  %7B%0D%0A    %09ret
@@ -713,16 +713,21 @@
 leName()
+%0D%0A   
  %7B%0D%0A    
@@ -851,16 +851,21 @@
 ntMark()
+%0D%0A   
  %7B%0D%0A    

Update to v1.00