public static class TameAnimalCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate.Extended |
entity |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
EntityPredicate.Extended entity) |
Modifier and Type | Method and Description |
---|---|
static TameAnimalCriterion.Conditions |
any() |
static TameAnimalCriterion.Conditions |
create(EntityPredicate entity) |
boolean |
matches(LootContext tamedEntityContext) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final EntityPredicate.Extended entity
public Conditions(EntityPredicate.Extended player, EntityPredicate.Extended entity)
public static TameAnimalCriterion.Conditions any()
public static TameAnimalCriterion.Conditions create(EntityPredicate entity)
public boolean matches(LootContext tamedEntityContext)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions