public class ChunkPos
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 |
|---|
ChunkPos(BlockPos pos) |
ChunkPos(int x,
int z) |
| Modifier and Type | Method and Description |
|---|---|
static long |
asLong(int x,
int z)
Converts the chunk coordinate pair to a long
|
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
|
double |
getDistanceSq(Entity entityIn) |
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 ChunkPos(int x,
int z)
public ChunkPos(BlockPos pos)
public static long asLong(int x,
int z)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic double getDistanceSq(Entity entityIn)
public int getXStart()
public int getZStart()
public int getXEnd()
public int getZEnd()
public BlockPos getBlock(int x, int y, int z)
public java.lang.String toString()
toString in class java.lang.Object