Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
color |
protected int |
priority |
protected int |
x |
protected int |
z |
Constructor and Description |
---|
MapPixel(int x,
int z,
java.awt.Color color)
Construct a MapPixel with the arguments provided.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MapPixel pixel) |
java.awt.Color |
getColor()
Get the color.
|
int |
getPriority()
Get the priority of this pixel.
|
int |
getX()
Get the x coordinate.
|
int |
getZ()
Get the z coordinate.
|
void |
setPriority(int priority)
Set the priority of this pixel.
|
protected int x
protected int z
protected int priority
protected java.awt.Color color
public MapPixel(int x, int z, java.awt.Color color)
x
- The x coordinate, from 0 to 127.z
- The z coordinate, from 0 to 127.color
- An ARGB color, cannot be null.public int getX()
public int getZ()
public java.awt.Color getColor()
public int getPriority()
public void setPriority(int priority)
priority
- The priority of this pixel.