|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.map.MapCursor
public final class MapCursor
Represents a cursor on a map.
| Nested Class Summary | |
|---|---|
static class |
MapCursor.Type
Represents the standard types of map cursors. |
| Constructor Summary | |
|---|---|
MapCursor(byte x,
byte y,
byte direction,
byte type,
boolean visible)
Initialize the map cursor. |
|
| Method Summary | |
|---|---|
byte |
getDirection()
Get the direction of this cursor. |
byte |
getRawType()
Get the type of this cursor. |
MapCursor.Type |
getType()
Get the type of this cursor. |
byte |
getX()
Get the X position of this cursor. |
byte |
getY()
Get the Y position of this cursor. |
boolean |
isVisible()
Get the visibility status of this cursor. |
void |
setDirection(byte direction)
Set the direction of this cursor. |
void |
setRawType(byte type)
Set the type of this cursor. |
void |
setType(MapCursor.Type type)
Set the type of this cursor. |
void |
setVisible(boolean visible)
Set the visibility status of this cursor. |
void |
setX(byte x)
Set the X position of this cursor. |
void |
setY(byte y)
Set the Y position of this cursor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapCursor(byte x,
byte y,
byte direction,
byte type,
boolean visible)
x - The x coordinate, from -128 to 127.y - The y coordinate, from -128 to 127.direction - The facing of the cursor, from 0 to 15.type - The type (color/style) of the map cursor.visible - Whether the cursor is visible by default.| Method Detail |
|---|
public byte getX()
public byte getY()
public byte getDirection()
public MapCursor.Type getType()
public byte getRawType()
public boolean isVisible()
public void setX(byte x)
x - The X coordinate.public void setY(byte y)
y - The Y coordinate.public void setDirection(byte direction)
direction - The facing of the cursor, from 0 to 15.public void setType(MapCursor.Type type)
type - The type (color/style) of the map cursor.public void setRawType(byte type)
type - The type (color/style) of the map cursor.public void setVisible(boolean visible)
visible - True if visible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||