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