-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate the
TagKey
constructor (#854)
- Loading branch information
1 parent
6a54c9b
commit e7ac323
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_); |