We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TagKey
1 parent 6a54c9b commit e7ac323Copy full SHA for e7ac323
patches/minecraft/net/minecraft/tags/TagKey.java.patch
@@ -0,0 +1,15 @@
1
+--- a/net/minecraft/tags/TagKey.java
2
++++ b/net/minecraft/tags/TagKey.java
3
+@@ -12,6 +_,12 @@
4
+ public record TagKey<T>(ResourceKey<? extends Registry<T>> f_203867_, ResourceLocation f_203868_) {
5
+ private static final Interner<TagKey<?>> f_203869_ = Interners.newWeakInterner();
6
+
7
++ /**
8
++ * @deprecated Neo: Use {@link TagKey#create} instead.
9
++ */
10
++ @Deprecated
11
++ public TagKey {}
12
++
13
+ public static <T> Codec<TagKey<T>> m_203877_(ResourceKey<? extends Registry<T>> p_203878_) {
14
+ return ResourceLocation.f_135803_.xmap((p_203893_) -> {
15
+ return m_203882_(p_203878_, p_203893_);
0 commit comments