public static class BredAnimalsCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
child |
private EntityPredicate |
parent |
private EntityPredicate |
partner |
Constructor and Description |
---|
Conditions(EntityPredicate parent,
EntityPredicate partner,
EntityPredicate child) |
Modifier and Type | Method and Description |
---|---|
static BredAnimalsCriterion.Conditions |
any() |
static BredAnimalsCriterion.Conditions |
create(EntityPredicate.Builder builder) |
boolean |
matches(ServerPlayerEntity player,
AnimalEntity parent,
AnimalEntity partner,
PassiveEntity child) |
JsonElement |
toJson() |
getId, toString
private final EntityPredicate parent
private final EntityPredicate partner
private final EntityPredicate child
public Conditions(EntityPredicate parent, EntityPredicate partner, EntityPredicate child)
public static BredAnimalsCriterion.Conditions any()
public static BredAnimalsCriterion.Conditions create(EntityPredicate.Builder builder)
public boolean matches(ServerPlayerEntity player, AnimalEntity parent, @Nullable AnimalEntity partner, @Nullable PassiveEntity child)
public JsonElement toJson()