Class LightningStrikeTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.LightningStrikeTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- LightningStrikeTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate EntityPredicate.Composite
private EntityPredicate.Composite
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_153410_, EntityPredicate.Composite p_153411_, EntityPredicate.Composite p_153412_)
-
Method Summary
Modifier and TypeMethodDescriptionlighthingStrike(EntityPredicate p_153414_, EntityPredicate p_153415_)
boolean
matches(LootContext p_153419_, List<LootContext> p_153420_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_153417_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
lightning
-
bystander
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_153410_, EntityPredicate.Composite p_153411_, EntityPredicate.Composite p_153412_)
-
-
Method Details
-
lighthingStrike
public static LightningStrikeTrigger.TriggerInstance lighthingStrike(EntityPredicate p_153414_, EntityPredicate p_153415_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-