mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add non-deprecated constructor for MapCursor
This commit is contained in:
parent
b44d1d7b09
commit
08224bb7e0
1 changed files with 17 additions and 0 deletions
|
@ -27,6 +27,23 @@ public final class MapCursor {
|
||||||
this.visible = visible;
|
this.visible = visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the map cursor.
|
||||||
|
*
|
||||||
|
* @param x The x coordinate, from -128 to 127.
|
||||||
|
* @param y The y coordinate, from -128 to 127.
|
||||||
|
* @param direction The facing of the cursor, from 0 to 15.
|
||||||
|
* @param type The type (color/style) of the map cursor.
|
||||||
|
* @param visible Whether the cursor is visible by default.
|
||||||
|
*/
|
||||||
|
public MapCursor(byte x, byte y, byte direction, Type type, boolean visible) {
|
||||||
|
this.x = x;
|
||||||
|
this.y = y;
|
||||||
|
setDirection(direction);
|
||||||
|
setType(type);
|
||||||
|
this.visible = visible;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the X position of this cursor.
|
* Get the X position of this cursor.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue