类 TagPredicate<T>

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

public class TagPredicate<T> extends Object
  • 字段详细资料

    • tag

      private final TagKey<T> tag
    • expected

      private final boolean expected
  • 构造器详细资料

    • TagPredicate

      public TagPredicate(TagKey<T> pTag, boolean pExpected)
  • 方法详细资料

    • is

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

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

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

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

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