public class MinecraftChunkLocation extends java.lang.Object implements IKey<MinecraftChunkLocation>
| Modifier and Type | Class and Description |
|---|---|
static class |
MinecraftChunkLocation.Provider |
| Modifier and Type | Field and Description |
|---|---|
static int |
ENTRIES_PER_REGION |
static int |
LOC_BITMASK |
static int |
LOC_BITS |
| Constructor and Description |
|---|
MinecraftChunkLocation(int entryX,
int entryZ,
java.lang.String extension) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getEntryX() |
int |
getEntryZ() |
int |
getId()
Gets the index of this key in the region associated with
this region location
The index must be grater than or equal to 0 AND less than
IKeyProvider.getKeyCount(RegionKey). |
RegionKey |
getRegionKey()
Gets the region's key.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final int LOC_BITS
public static final int LOC_BITMASK
public static final int ENTRIES_PER_REGION
public MinecraftChunkLocation(int entryX,
int entryZ,
java.lang.String extension)
public int getEntryX()
public int getEntryZ()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic RegionKey getRegionKey()
IKey^[a-z0-9\._\-]+$ are not supported. Uppercase characters are not allowed
to avoid case-sensitivity issues across different operating systems.getRegionKey in interface IKey<MinecraftChunkLocation>public int getId()
IKeyIKeyProvider.getKeyCount(RegionKey).
The index must be unique within one region. Specifically, for any 2 IKey objects of the same type,
k1.getRegionKey().equals(k2.getRegionKey()) && k1.getId() != k2.getId() must always be true.getId in interface IKey<MinecraftChunkLocation>public java.lang.String toString()
toString in class java.lang.Object