Update to Minecraft 1.13-pre7

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2018-07-15 10:00:00 +10:00
parent debc7172fd
commit 767e4f6ccf
199 changed files with 8301 additions and 3637 deletions

View File

@@ -7,6 +7,7 @@ public final class MapCursor {
private byte x, y;
private byte direction, type;
private boolean visible;
private String caption;
/**
* Initialize the map cursor.
@@ -147,8 +148,8 @@ public final class MapCursor {
*/
@Deprecated
public void setRawType(byte type) {
if (type < 0 || type > 15) {
throw new IllegalArgumentException("Type must be in the range 0-15");
if (type < 0 || type > 26) {
throw new IllegalArgumentException("Type must be in the range 0-26");
}
this.type = type;
}
@@ -162,6 +163,24 @@ public final class MapCursor {
this.visible = visible;
}
/**
* Gets the caption on this cursor.
*
* @return caption
*/
public String getCaption() {
return caption;
}
/**
* Sets the caption on this cursor.
*
* @param caption new caption
*/
public void setCaption(String caption) {
this.caption = caption;
}
/**
* Represents the standard types of map cursors. More may be made
* available by resource packs - the value is used by the client as an
@@ -178,7 +197,24 @@ public final class MapCursor {
WHITE_CIRCLE(6),
SMALL_WHITE_CIRCLE(7),
MANSION(8),
TEMPLE(9);
TEMPLE(9),
BANNER_WHITE(10),
BANNER_ORANGE(11),
BANNER_MAGENTA(12),
BANNER_LIGHT_BLUE(13),
BANNER_YELLOW(14),
BANNER_LIME(15),
BANNER_PINK(16),
BANNER_GRAY(17),
BANNER_LIGHT_GRAY(18),
BANNER_CYAN(19),
BANNER_PURPLE(20),
BANNER_BLUE(21),
BANNER_BROWN(22),
BANNER_GREEN(23),
BANNER_RED(24),
BANNER_BLACK(25),
RED_X(26);
private byte value;