public class NbtPredicate extends Object
Modifier and Type | Field and Description |
---|---|
static NbtPredicate |
ANY |
private CompoundTag |
tag |
Constructor and Description |
---|
NbtPredicate(CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
static CompoundTag |
entityToTag(Entity entity) |
static NbtPredicate |
fromJson(JsonElement json) |
boolean |
test(Entity entity) |
boolean |
test(ItemStack stack) |
boolean |
test(Tag tag) |
JsonElement |
toJson() |
public static final NbtPredicate ANY
@Nullable private final CompoundTag tag
public NbtPredicate(@Nullable CompoundTag tag)
public boolean test(ItemStack stack)
public boolean test(Entity entity)
public JsonElement toJson()
public static NbtPredicate fromJson(@Nullable JsonElement json)
public static CompoundTag entityToTag(Entity entity)