public static class ChanneledLightningCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate.Extended[] |
victims |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
EntityPredicate.Extended[] victims) |
Modifier and Type | Method and Description |
---|---|
static ChanneledLightningCriterion.Conditions |
create(EntityPredicate[] victims) |
boolean |
matches(Collection<? extends LootContext> victims) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final EntityPredicate.Extended[] victims
public Conditions(EntityPredicate.Extended player, EntityPredicate.Extended[] victims)
public static ChanneledLightningCriterion.Conditions create(EntityPredicate[] victims)
public boolean matches(Collection<? extends LootContext> victims)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions