Package net.minecraft.predicate
Class TagPredicate<T>
java.lang.Object
net.minecraft.predicate.TagPredicate<T>
- Mappings:
Namespace Name official dbintermediary net/minecraft/class_8129named net/minecraft/predicate/TagPredicate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TagPredicate<T>static <T> TagPredicate<T>fromJson(@Nullable JsonElement json, RegistryKey<? extends Registry<T>> registry) booleantest(RegistryEntry<T> registryEntry) toJson()static <T> TagPredicate<T>unexpected(TagKey<T> tag)
-
Field Details
-
tag
- Mappings:
Namespace Name Mixin selector official aLdb;a:Lapy;intermediary field_42477Lnet/minecraft/class_8129;field_42477:Lnet/minecraft/class_6862;named tagLnet/minecraft/predicate/TagPredicate;tag:Lnet/minecraft/registry/tag/TagKey;
-
expected
private final boolean expected- Mappings:
Namespace Name Mixin selector official bLdb;b:Zintermediary field_42478Lnet/minecraft/class_8129;field_42478:Znamed expectedLnet/minecraft/predicate/TagPredicate;expected:Z
-
-
Constructor Details
-
TagPredicate
- Mappings:
Namespace Name Mixin selector official <init>Ldb;<init>(Lapy;Z)Vintermediary <init>Lnet/minecraft/class_8129;<init>(Lnet/minecraft/class_6862;Z)Vnamed <init>Lnet/minecraft/predicate/TagPredicate;<init>(Lnet/minecraft/registry/tag/TagKey;Z)V
-
-
Method Details
-
expected
- Mappings:
Namespace Name Mixin selector official aLdb;a(Lapy;)Ldb;intermediary method_48965Lnet/minecraft/class_8129;method_48965(Lnet/minecraft/class_6862;)Lnet/minecraft/class_8129;named expectedLnet/minecraft/predicate/TagPredicate;expected(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/predicate/TagPredicate;
-
unexpected
- Mappings:
Namespace Name Mixin selector official bLdb;b(Lapy;)Ldb;intermediary method_48968Lnet/minecraft/class_8129;method_48968(Lnet/minecraft/class_6862;)Lnet/minecraft/class_8129;named unexpectedLnet/minecraft/predicate/TagPredicate;unexpected(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/predicate/TagPredicate;
-
test
- Mappings:
Namespace Name Mixin selector official aLdb;a(Lhf;)Zintermediary method_48967Lnet/minecraft/class_8129;method_48967(Lnet/minecraft/class_6880;)Znamed testLnet/minecraft/predicate/TagPredicate;test(Lnet/minecraft/registry/entry/RegistryEntry;)Z
-
toJson
- Mappings:
Namespace Name Mixin selector official aLdb;a()Lcom/google/gson/JsonElement;intermediary method_48964Lnet/minecraft/class_8129;method_48964()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/predicate/TagPredicate;toJson()Lcom/google/gson/JsonElement;
-
fromJson
public static <T> TagPredicate<T> fromJson(@Nullable @Nullable JsonElement json, RegistryKey<? extends Registry<T>> registry) - Mappings:
Namespace Name Mixin selector official aLdb;a(Lcom/google/gson/JsonElement;Laeo;)Ldb;intermediary method_48966Lnet/minecraft/class_8129;method_48966(Lcom/google/gson/JsonElement;Lnet/minecraft/class_5321;)Lnet/minecraft/class_8129;named fromJsonLnet/minecraft/predicate/TagPredicate;fromJson(Lcom/google/gson/JsonElement;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/predicate/TagPredicate;
-