Tag Lifecycle Events (#10993)
* wip tags * use generics in tag registrars * comment out varargs methods for now * split up patch * cache loaded service provider * finish renames * use builderWithExpectedSize * finalize
This commit is contained in:
parent
a21216b976
commit
969432263f
8 changed files with 1013 additions and 48 deletions
|
@ -788,6 +788,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+@ApiStatus.Internal
|
||||
+@DefaultQualifier(NonNull.class)
|
||||
+record TagKeyImpl<T>(RegistryKey<T> registryKey, Key key) implements TagKey<T> {
|
||||
+
|
||||
+ @Override
|
||||
+ public String toString() {
|
||||
+ return "#" + this.key + " (in " + this.registryKey + ")";
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/Registry.java b/src/main/java/org/bukkit/Registry.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue