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