public class SimpleChunkLocation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleChunkLocation.SimpleChunkLocationFormatException |
Constructor and Description |
---|
SimpleChunkLocation(SimpleLocation sloc) |
SimpleChunkLocation(String world,
double x,
double y,
double z) |
SimpleChunkLocation(String world,
int i,
int j) |
SimpleChunkLocation(String world,
int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
SimpleChunkLocation |
add(int i,
int j)
SimpleChunkLocation is a consistent class, so this method will return new
instance that added provided value to this instance.
|
SimpleChunkLocation |
add(Vector dir) |
double |
distance(SimpleChunkLocation other) |
boolean |
equals(Object obj) |
int |
getI() |
int |
getJ() |
String |
getWorld() |
int |
hashCode() |
String |
toString() |
static SimpleChunkLocation |
valueOf(String value) |
public SimpleChunkLocation(String world, int i, int j)
public SimpleChunkLocation(String world, int x, int y, int z)
public SimpleChunkLocation(String world, double x, double y, double z)
public SimpleChunkLocation(SimpleLocation sloc)
public static SimpleChunkLocation valueOf(String value)
public String getWorld()
public int getI()
public int getJ()
public SimpleChunkLocation add(int i, int j)
i
- x axis chunk coordinate to addj
- z axis chunk coordinate to addpublic SimpleChunkLocation add(Vector dir)
public double distance(SimpleChunkLocation other)