Class NbtPredicate

java.lang.Object
net.minecraft.advancements.critereon.NbtPredicate

public class NbtPredicate extends Object
  • Field Details

  • Constructor Details

    • NbtPredicate

      public NbtPredicate(@Nullable CompoundTag p_57475_)
  • Method Details

    • matches

      public boolean matches(ItemStack p_57480_)
    • matches

      public boolean matches(Entity p_57478_)
    • matches

      public boolean matches(@Nullable Tag p_57484_)
    • serializeToJson

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

      public static NbtPredicate fromJson(@Nullable com.google.gson.JsonElement p_57482_)
    • getEntityTagToCompare

      public static CompoundTag getEntityTagToCompare(Entity p_57486_)