Add backward compatible method

This commit is contained in:
TheMode 2021-06-22 03:05:22 +02:00
parent b5c7106f9b
commit 43c2b48b68
1 changed files with 8 additions and 0 deletions

View File

@ -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);
}
}