MCPcopy Create free account
hub / github.com/Teneted/Tenet / MapCursor

Class MapCursor

src/main/java/org/bukkit/map/MapCursor.java:9–291  ·  view source on GitHub ↗

Represents a cursor on a map.

Source from the content-addressed store, hash-verified

7 * Represents a cursor on a map.
8 */
9public final class MapCursor {
10 private byte x, y;
11 private byte direction, type;
12 private boolean visible;
13 private String caption;
14
15 /**
16 * Initialize the map cursor.
17 *
18 * @param x The x coordinate, from -128 to 127.
19 * @param y The y coordinate, from -128 to 127.
20 * @param direction The facing of the cursor, from 0 to 15.
21 * @param type The type (color/style) of the map cursor.
22 * @param visible Whether the cursor is visible by default.
23 * @deprecated Magic value
24 */
25 @Deprecated
26 public MapCursor(byte x, byte y, byte direction, byte type, boolean visible) {
27 this(x, y, direction, type, visible, null);
28 }
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, @NotNull Type type, boolean visible) {
40 this(x, y, direction, type, visible, null);
41 }
42
43 /**
44 * Initialize the map cursor.
45 *
46 * @param x The x coordinate, from -128 to 127.
47 * @param y The y coordinate, from -128 to 127.
48 * @param direction The facing of the cursor, from 0 to 15.
49 * @param type The type (color/style) of the map cursor.
50 * @param visible Whether the cursor is visible by default.
51 * @param caption cursor caption
52 * @deprecated Magic value
53 */
54 @Deprecated
55 public MapCursor(byte x, byte y, byte direction, byte type, boolean visible, @Nullable String caption) {
56 this.x = x;
57 this.y = y;
58 setDirection(direction);
59 setRawType(type);
60 this.visible = visible;
61 this.caption = caption;
62 }
63
64 /**
65 * Initialize the map cursor.
66 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected