Update to Minecraft 1.20

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-06-08 01:30:00 +10:00
parent bac55e67d6
commit 9d740b84b0
269 changed files with 2605 additions and 2568 deletions

View File

@@ -12,7 +12,7 @@
public class DataWatcher {
private static final Logger LOGGER = LogUtils.getLogger();
@@ -142,6 +147,13 @@
@@ -146,6 +151,13 @@
}
@@ -26,7 +26,7 @@
public boolean isDirty() {
return this.isDirty;
}
@@ -223,7 +235,7 @@
@@ -227,7 +239,7 @@
if (!Objects.equals(datawatcher_b.serializer(), datawatcher_item.accessor.getSerializer())) {
throw new IllegalStateException(String.format(Locale.ROOT, "Invalid entity data item type for field %d on entity %s: old=%s(%s), new=%s(%s)", datawatcher_item.accessor.getId(), this.entity, datawatcher_item.value, datawatcher_item.value.getClass(), datawatcher_b.value, datawatcher_b.value.getClass()));
} else {
@@ -35,7 +35,7 @@
}
}
@@ -231,6 +243,18 @@
@@ -235,6 +247,18 @@
return this.itemsById.isEmpty();
}
@@ -54,7 +54,7 @@
public static class Item<T> {
final DataWatcherObject<T> accessor;
@@ -273,7 +297,7 @@
@@ -277,7 +301,7 @@
}
}