public class ChanneledLightningCriterion extends AbstractCriterion<ChanneledLightningCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
ChanneledLightningCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
ChanneledLightningCriterion() |
Modifier and Type | Method and Description |
---|---|
ChanneledLightningCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
Collection<? extends Entity> victims) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private static final Identifier ID
public Identifier getId()
public ChanneledLightningCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<ChanneledLightningCriterion.Conditions>
public void trigger(ServerPlayerEntity player, Collection<? extends Entity> victims)