Class NBTPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.NBTPredicate
-
public class NBTPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static NBTPredicate
ANY
private CompoundNBT
tag
-
Constructor Summary
Constructors Constructor Description NBTPredicate(CompoundNBT p_i47536_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NBTPredicate
fromJson(com.google.gson.JsonElement p_193476_0_)
static CompoundNBT
getEntityTagToCompare(Entity p_196981_0_)
boolean
matches(Entity p_193475_1_)
boolean
matches(ItemStack p_193478_1_)
boolean
matches(INBT p_193477_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final NBTPredicate ANY
-
tag
@Nullable private final CompoundNBT tag
-
-
Constructor Detail
-
NBTPredicate
public NBTPredicate(@Nullable CompoundNBT p_i47536_1_)
-
-
Method Detail
-
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_)
-
-