![]() |
Bukkit
1.4.7-R1.0
|
Represents all the map cursors on a MapCanvas. More...
Public Member Functions | |
| int | size () |
| Get the amount of cursors in this collection. | |
| MapCursor | getCursor (int index) |
| Get a cursor from this collection. | |
| boolean | removeCursor (MapCursor cursor) |
| Remove a cursor from the collection. | |
| MapCursor | addCursor (MapCursor cursor) |
| Add a cursor to the collection. | |
| 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. | |
Represents all the map cursors on a MapCanvas.
Like MapCanvas, a MapCursorCollection is linked to a specific MapRenderer.
Definition at line 10 of file MapCursorCollection.java.
Add a cursor to the collection.
| cursor | The MapCursor to add. |
Definition at line 49 of file MapCursorCollection.java.
Referenced by org.bukkit.map.MapCursorCollection.addCursor().
| MapCursor org.bukkit.map.MapCursorCollection.addCursor | ( | int | x, |
| int | y, | ||
| byte | direction | ||
| ) |
Add a cursor to the collection.
| 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. |
Definition at line 62 of file MapCursorCollection.java.
References org.bukkit.map.MapCursorCollection.addCursor().
| MapCursor org.bukkit.map.MapCursorCollection.addCursor | ( | int | x, |
| int | y, | ||
| byte | direction, | ||
| byte | type | ||
| ) |
Add a cursor to the collection.
| 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. |
Definition at line 75 of file MapCursorCollection.java.
References org.bukkit.map.MapCursorCollection.addCursor().
| MapCursor org.bukkit.map.MapCursorCollection.addCursor | ( | int | x, |
| int | y, | ||
| byte | direction, | ||
| byte | type, | ||
| boolean | visible | ||
| ) |
Add a cursor to the collection.
| 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. |
Definition at line 89 of file MapCursorCollection.java.
References org.bukkit.map.MapCursorCollection.addCursor().
| MapCursor org.bukkit.map.MapCursorCollection.getCursor | ( | int | index | ) |
Get a cursor from this collection.
| index | The index of the cursor. |
Definition at line 29 of file MapCursorCollection.java.
| boolean org.bukkit.map.MapCursorCollection.removeCursor | ( | MapCursor | cursor | ) |
Remove a cursor from the collection.
| cursor | The MapCursor to remove. |
Definition at line 39 of file MapCursorCollection.java.
| int org.bukkit.map.MapCursorCollection.size | ( | ) |
Get the amount of cursors in this collection.
Definition at line 19 of file MapCursorCollection.java.