@@ -12,7 +12,7 @@
|
||||
public class DataWatcher {
|
||||
|
||||
private static final Logger LOGGER = LogUtils.getLogger();
|
||||
@@ -138,6 +143,13 @@
|
||||
@@ -142,6 +147,13 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
public boolean isDirty() {
|
||||
return this.isDirty;
|
||||
}
|
||||
@@ -218,7 +230,7 @@
|
||||
@@ -223,7 +235,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 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,6 +238,18 @@
|
||||
@@ -231,6 +243,18 @@
|
||||
return this.itemsById.isEmpty();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
public static class Item<T> {
|
||||
|
||||
final DataWatcherObject<T> accessor;
|
||||
@@ -268,7 +292,7 @@
|
||||
@@ -273,7 +297,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user