mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 15:41:38 +01:00
Add backward compatible method
This commit is contained in:
parent
b5c7106f9b
commit
43c2b48b68
@ -212,4 +212,12 @@ public class Tag<T> {
|
||||
nbtCompound -> serializer.read(TagReadable.fromCompound(nbtCompound)),
|
||||
(nbtCompound, value) -> serializer.write(TagWritable.fromCompound(nbtCompound), value));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #Structure(String, TagSerializer)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static <T> @NotNull Tag<T> Custom(@NotNull String key, @NotNull TagSerializer<T> serializer) {
|
||||
return Structure(key, serializer);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user