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, fromJsonprivate final EntityType<?> type
public Single(EntityType<?> type)
public boolean matches(EntityType<?> type)
matches in class EntityTypePredicatepublic JsonElement toJson()
toJson in class EntityTypePredicate