Class TagPredicate<T>

java.lang.Object
net.minecraft.advancements.critereon.TagPredicate<T>

public class TagPredicate<T> extends Object
  • Field Details

    • tag

      private final TagKey<T> tag
    • expected

      private final boolean expected
  • Constructor Details

    • TagPredicate

      public TagPredicate(TagKey<T> p_270819_, boolean p_270913_)
  • Method Details

    • is

      public static <T> TagPredicate<T> is(TagKey<T> p_270668_)
    • isNot

      public static <T> TagPredicate<T> isNot(TagKey<T> p_270264_)
    • matches

      public boolean matches(Holder<T> p_270125_)
    • serializeToJson

      public com.google.gson.JsonElement serializeToJson()
    • fromJson

      public static <T> TagPredicate<T> fromJson(@Nullable com.google.gson.JsonElement p_270982_, ResourceKey<? extends Registry<T>> p_270978_)