Commits

MinusKube authored 08224bb7e07
Add non-deprecated constructor for MapCursor
No tags

src/main/java/org/bukkit/map/MapCursor.java

Modified
20 20 */
21 21 @Deprecated
22 22 public MapCursor(byte x, byte y, byte direction, byte type, boolean visible) {
23 23 this.x = x;
24 24 this.y = y;
25 25 setDirection(direction);
26 26 setRawType(type);
27 27 this.visible = visible;
28 28 }
29 29
30 + /**
31 + * Initialize the map cursor.
32 + *
33 + * @param x The x coordinate, from -128 to 127.
34 + * @param y The y coordinate, from -128 to 127.
35 + * @param direction The facing of the cursor, from 0 to 15.
36 + * @param type The type (color/style) of the map cursor.
37 + * @param visible Whether the cursor is visible by default.
38 + */
39 + public MapCursor(byte x, byte y, byte direction, Type type, boolean visible) {
40 + this.x = x;
41 + this.y = y;
42 + setDirection(direction);
43 + setType(type);
44 + this.visible = visible;
45 + }
46 +
30 47 /**
31 48 * Get the X position of this cursor.
32 49 *
33 50 * @return The X coordinate.
34 51 */
35 52 public byte getX() {
36 53 return x;
37 54 }
38 55
39 56 /**

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut