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