public class ChunkCoordIntPair
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
chunkXPos
The X position of this Chunk Coordinate Pair
|
int |
chunkZPos
The Z position of this Chunk Coordinate Pair
|
Constructor and Description |
---|
ChunkCoordIntPair(int x,
int z) |
Modifier and Type | Method and Description |
---|---|
static long |
chunkXZ2Int(int x,
int z)
converts a chunk coordinate pair to an integer (suitable for hashing)
|
boolean |
equals(java.lang.Object p_equals_1_) |
BlockPos |
getBlock(int x,
int y,
int z)
Get the World coordinates of the Block with the given Chunk coordinates relative to this chunk
|
BlockPos |
getCenterBlock(int y)
Get the coordinates of the Block in the center of this chunk with the given Y coordinate
|
int |
getCenterXPos() |
int |
getCenterZPosition() |
int |
getXEnd()
Get the last world X coordinate that belongs to this Chunk
|
int |
getXStart()
Get the first world X coordinate that belongs to this Chunk
|
int |
getZEnd()
Get the last world Z coordinate that belongs to this Chunk
|
int |
getZStart()
Get the first world Z coordinate that belongs to this Chunk
|
int |
hashCode() |
java.lang.String |
toString() |
public final int chunkXPos
public final int chunkZPos
public static long chunkXZ2Int(int x, int z)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int getCenterXPos()
public int getCenterZPosition()
public int getXStart()
public int getZStart()
public int getXEnd()
public int getZEnd()
public BlockPos getBlock(int x, int y, int z)
public BlockPos getCenterBlock(int y)
public java.lang.String toString()
toString
in class java.lang.Object