public class NBTPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NBTPredicate |
ANY |
private NBTTagCompound |
tag |
Constructor and Description |
---|
NBTPredicate(NBTTagCompound tag) |
Modifier and Type | Method and Description |
---|---|
static NBTPredicate |
deserialize(com.google.gson.JsonElement json) |
boolean |
test(Entity entityIn) |
boolean |
test(ItemStack item) |
boolean |
test(NBTBase nbt) |
public static final NBTPredicate ANY
@Nullable private final NBTTagCompound tag
public NBTPredicate(@Nullable NBTTagCompound tag)
public boolean test(ItemStack item)
public boolean test(Entity entityIn)
public boolean test(@Nullable NBTBase nbt)
public static NBTPredicate deserialize(@Nullable com.google.gson.JsonElement json)