Class TagPredicate<T>

java.lang.Object
net.minecraft.predicate.TagPredicate<T>

public class TagPredicate<T> extends Object
Mappings:
Namespace Name
official db
intermediary net/minecraft/class_8129
named net/minecraft/predicate/TagPredicate
  • Field Details

    • tag

      private final TagKey<T> tag
      Mappings:
      Namespace Name Mixin selector
      official a Ldb;a:Lanl;
      intermediary field_42477 Lnet/minecraft/class_8129;field_42477:Lnet/minecraft/class_6862;
      named tag Lnet/minecraft/predicate/TagPredicate;tag:Lnet/minecraft/registry/tag/TagKey;
    • expected

      private final boolean expected
      Mappings:
      Namespace Name Mixin selector
      official b Ldb;b:Z
      intermediary field_42478 Lnet/minecraft/class_8129;field_42478:Z
      named expected Lnet/minecraft/predicate/TagPredicate;expected:Z
  • Constructor Details

    • TagPredicate

      public TagPredicate(TagKey<T> tag, boolean expected)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldb;<init>(Lanl;Z)V
      intermediary <init> Lnet/minecraft/class_8129;<init>(Lnet/minecraft/class_6862;Z)V
      named <init> Lnet/minecraft/predicate/TagPredicate;<init>(Lnet/minecraft/registry/tag/TagKey;Z)V
  • Method Details

    • expected

      public static <T> TagPredicate<T> expected(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Ldb;a(Lanl;)Ldb;
      intermediary method_48965 Lnet/minecraft/class_8129;method_48965(Lnet/minecraft/class_6862;)Lnet/minecraft/class_8129;
      named expected Lnet/minecraft/predicate/TagPredicate;expected(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/predicate/TagPredicate;
    • unexpected

      public static <T> TagPredicate<T> unexpected(TagKey<T> tag)
      Mappings:
      Namespace Name Mixin selector
      official b Ldb;b(Lanl;)Ldb;
      intermediary method_48968 Lnet/minecraft/class_8129;method_48968(Lnet/minecraft/class_6862;)Lnet/minecraft/class_8129;
      named unexpected Lnet/minecraft/predicate/TagPredicate;unexpected(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/predicate/TagPredicate;
    • test

      public boolean test(RegistryEntry<T> registryEntry)
      Mappings:
      Namespace Name Mixin selector
      official a Ldb;a(Lhe;)Z
      intermediary method_48967 Lnet/minecraft/class_8129;method_48967(Lnet/minecraft/class_6880;)Z
      named test Lnet/minecraft/predicate/TagPredicate;test(Lnet/minecraft/registry/entry/RegistryEntry;)Z
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Ldb;a()Lcom/google/gson/JsonElement;
      intermediary method_48964 Lnet/minecraft/class_8129;method_48964()Lcom/google/gson/JsonElement;
      named toJson Lnet/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 a Ldb;a(Lcom/google/gson/JsonElement;Lacp;)Ldb;
      intermediary method_48966 Lnet/minecraft/class_8129;method_48966(Lcom/google/gson/JsonElement;Lnet/minecraft/class_5321;)Lnet/minecraft/class_8129;
      named fromJson Lnet/minecraft/predicate/TagPredicate;fromJson(Lcom/google/gson/JsonElement;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/predicate/TagPredicate;