summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/map/MapCursor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/map/MapCursor.java')
-rw-r--r--src/main/java/org/bukkit/map/MapCursor.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/map/MapCursor.java b/src/main/java/org/bukkit/map/MapCursor.java
index 6ef06597..ad002b7b 100644
--- a/src/main/java/org/bukkit/map/MapCursor.java
+++ b/src/main/java/org/bukkit/map/MapCursor.java
@@ -4,7 +4,6 @@ package org.bukkit.map;
* Represents a cursor on a map.
*/
public final class MapCursor {
-
private byte x, y;
private byte direction, type;
private boolean visible;
@@ -17,7 +16,9 @@ public final class MapCursor {
* @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.
+ * @deprecated Magic value
*/
+ @Deprecated
public MapCursor(byte x, byte y, byte direction, byte type, boolean visible) {
this.x = x;
this.y = y;
@@ -66,7 +67,9 @@ public final class MapCursor {
* Get the type of this cursor.
*
* @return The type (color/style) of the map cursor.
+ * @deprecated Magic value
*/
+ @Deprecated
public byte getRawType() {
return type;
}
@@ -123,7 +126,9 @@ public final class MapCursor {
* Set the type of this cursor.
*
* @param type The type (color/style) of the map cursor.
+ * @deprecated Magic value
*/
+ @Deprecated
public void setRawType(byte type) {
if (type < 0 || type > 15) {
throw new IllegalArgumentException("Type must be in the range 0-15");
@@ -158,10 +163,20 @@ public final class MapCursor {
this.value = (byte) value;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public byte getValue() {
return value;
}
+ /**
+ *
+ * @deprecated Magic value
+ */
+ @Deprecated
public static Type byValue(byte value) {
for (Type t : values()) {
if (t.value == value) return t;