public abstract class EntityTypePredicate extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
EntityTypePredicate.Single |
(package private) static class |
EntityTypePredicate.Tagged |
Modifier and Type | Field and Description |
---|---|
static EntityTypePredicate |
ANY |
private static Joiner |
COMMA_JOINER |
Constructor and Description |
---|
EntityTypePredicate() |
Modifier and Type | Method and Description |
---|---|
static EntityTypePredicate |
create(EntityType<?> type) |
static EntityTypePredicate |
create(Tag<EntityType<?>> tag) |
static EntityTypePredicate |
fromJson(JsonElement json) |
abstract boolean |
matches(EntityType<?> type) |
abstract JsonElement |
toJson() |
public static final EntityTypePredicate ANY
private static final Joiner COMMA_JOINER
public abstract boolean matches(EntityType<?> type)
public abstract JsonElement toJson()
public static EntityTypePredicate fromJson(@Nullable JsonElement json)
public static EntityTypePredicate create(EntityType<?> type)
public static EntityTypePredicate create(Tag<EntityType<?>> tag)