public class Coordinate
extends java.lang.Object
| Constructor and Description |
|---|
Coordinate()
Creates a coordinate object with a (x, y, z) of (0, 0, 0).
|
Coordinate(int x,
int y,
int z)
Creates a new coordinate object with a specified (x, y, z).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
@NotNull ChunkCoordinate |
toChunkCoordinate()
Gets the chunk coordinate this coordinate is in.
|
public Coordinate(int x,
int y,
int z)
x - The x coordinate to set.y - The y coordinate to set.z - The z coordinate to set.public Coordinate()
@NotNull public @NotNull ChunkCoordinate toChunkCoordinate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object