Class NBTPredicate

java.lang.Object
net.minecraft.advancements.criterion.NBTPredicate

public class NBTPredicate extends Object
  • Field Details

  • Constructor Details

    • NBTPredicate

      public NBTPredicate(@Nullable CompoundNBT p_i47536_1_)
  • Method Details

    • matches

      public boolean matches(ItemStack p_193478_1_)
    • matches

      public boolean matches(Entity p_193475_1_)
    • matches

      public boolean matches(@Nullable INBT p_193477_1_)
    • serializeToJson

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

      public static NBTPredicate fromJson(@Nullable com.google.gson.JsonElement p_193476_0_)
    • getEntityTagToCompare

      public static CompoundNBT getEntityTagToCompare(Entity p_196981_0_)