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 final ContextAwarePredicate
private final ContextAwarePredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ContextAwarePredicate p_286747_, ContextAwarePredicate p_286287_, ContextAwarePredicate p_286566_) -
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(ContextAwarePredicate p_286747_, ContextAwarePredicate p_286287_, ContextAwarePredicate p_286566_)
-
-
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
-