|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.map.MapCursorCollection
public final class MapCursorCollection
Represents all the map cursors on a MapCanvas
. Like MapCanvas, a
MapCursorCollection is linked to a specific MapRenderer
.
Constructor Summary | |
---|---|
MapCursorCollection()
|
Method Summary | |
---|---|
MapCursor |
addCursor(int x,
int y,
byte direction)
Add a cursor to the collection. |
MapCursor |
addCursor(int x,
int y,
byte direction,
byte type)
Add a cursor to the collection. |
MapCursor |
addCursor(int x,
int y,
byte direction,
byte type,
boolean visible)
Add a cursor to the collection. |
MapCursor |
addCursor(MapCursor cursor)
Add a cursor to the collection. |
MapCursor |
getCursor(int index)
Get a cursor from this collection. |
boolean |
removeCursor(MapCursor cursor)
Remove a cursor from the collection. |
int |
size()
Get the amount of cursors in this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapCursorCollection()
Method Detail |
---|
public int size()
public MapCursor getCursor(int index)
index
- The index of the cursor.
public boolean removeCursor(MapCursor cursor)
cursor
- The MapCursor to remove.
public MapCursor addCursor(MapCursor cursor)
cursor
- The MapCursor to add.
public MapCursor addCursor(int x, int y, byte direction)
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.
public MapCursor addCursor(int x, int y, byte direction, byte type)
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.
public MapCursor addCursor(int x, int 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |