public static class ChanneledLightningCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityPredicate[] |
victims |
Constructor and Description |
---|
Conditions(EntityPredicate[] victims) |
Modifier and Type | Method and Description |
---|---|
static ChanneledLightningCriterion.Conditions |
create(EntityPredicate[] victims) |
boolean |
matches(ServerPlayerEntity player,
Collection<? extends Entity> victims) |
JsonElement |
toJson() |
getId, toString
private final EntityPredicate[] victims
public Conditions(EntityPredicate[] victims)
public static ChanneledLightningCriterion.Conditions create(EntityPredicate[] victims)
public boolean matches(ServerPlayerEntity player, Collection<? extends Entity> victims)
public JsonElement toJson()