static class EntityTypePredicate.Single extends EntityTypePredicate
EntityTypePredicate.Single, EntityTypePredicate.Tagged
Modifier and Type | Field and Description |
---|---|
private EntityType<?> |
type |
ANY
Constructor and Description |
---|
Single(EntityType<?> type) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(EntityType<?> type) |
JsonElement |
toJson() |
create, create, fromJson
private final EntityType<?> type
public Single(EntityType<?> type)
public boolean matches(EntityType<?> type)
matches
in class EntityTypePredicate
public JsonElement toJson()
toJson
in class EntityTypePredicate