From 43c2b48b68f5b520b41aeaa65374954c8e78bb46 Mon Sep 17 00:00:00 2001 From: TheMode Date: Tue, 22 Jun 2021 03:05:22 +0200 Subject: [PATCH] Add backward compatible method --- src/main/java/net/minestom/server/tag/Tag.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/net/minestom/server/tag/Tag.java b/src/main/java/net/minestom/server/tag/Tag.java index 80652cbac..641952cbe 100644 --- a/src/main/java/net/minestom/server/tag/Tag.java +++ b/src/main/java/net/minestom/server/tag/Tag.java @@ -212,4 +212,12 @@ public class Tag { nbtCompound -> serializer.read(TagReadable.fromCompound(nbtCompound)), (nbtCompound, value) -> serializer.write(TagWritable.fromCompound(nbtCompound), value)); } + + /** + * @deprecated use {@link #Structure(String, TagSerializer)} instead + */ + @Deprecated + public static @NotNull Tag Custom(@NotNull String key, @NotNull TagSerializer serializer) { + return Structure(key, serializer); + } }