Skip to content

Commit

Permalink
Deprecate the TagKey constructor (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltmilk authored Apr 26, 2024
1 parent 6a54c9b commit e7ac323
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/minecraft/net/minecraft/tags/TagKey.java.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/net/minecraft/tags/TagKey.java
+++ b/net/minecraft/tags/TagKey.java
@@ -12,6 +_,12 @@
public record TagKey<T>(ResourceKey<? extends Registry<T>> f_203867_, ResourceLocation f_203868_) {
private static final Interner<TagKey<?>> f_203869_ = Interners.newWeakInterner();

+ /**
+ * @deprecated Neo: Use {@link TagKey#create} instead.
+ */
+ @Deprecated
+ public TagKey {}
+
public static <T> Codec<TagKey<T>> m_203877_(ResourceKey<? extends Registry<T>> p_203878_) {
return ResourceLocation.f_135803_.xmap((p_203893_) -> {
return m_203882_(p_203878_, p_203893_);

0 comments on commit e7ac323

Please sign in to comment.