public static class TameAnimalCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
entity |
Constructor and Description |
---|
Conditions(EntityPredicate entity) |
Modifier and Type | Method and Description |
---|---|
static TameAnimalCriterion.Conditions |
any() |
static TameAnimalCriterion.Conditions |
create(EntityPredicate entity) |
boolean |
matches(ServerPlayerEntity player,
AnimalEntity entity) |
JsonElement |
toJson() |
getId, toString
private final EntityPredicate entity
public Conditions(EntityPredicate entity)
public static TameAnimalCriterion.Conditions any()
public static TameAnimalCriterion.Conditions create(EntityPredicate entity)
public boolean matches(ServerPlayerEntity player, AnimalEntity entity)
public JsonElement toJson()