public static class SummonedEntityCriterion.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 SummonedEntityCriterion.Conditions |
create(EntityPredicate.Builder summonedEntityPredicateBuilder) |
boolean |
matches(LootContext summonedEntityContext) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final EntityPredicate.Extended entity
public Conditions(EntityPredicate.Extended player, EntityPredicate.Extended entity)
public static SummonedEntityCriterion.Conditions create(EntityPredicate.Builder summonedEntityPredicateBuilder)
public boolean matches(LootContext summonedEntityContext)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions