Class LightningStrikeTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.LightningStrikeTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- LightningStrikeTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ContextAwarePredicate>
private final Optional<ContextAwarePredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299191_, Optional<ContextAwarePredicate> p_297442_, Optional<ContextAwarePredicate> p_299715_) -
Method Summary
Modifier and TypeMethodDescriptionlightningStrike
(Optional<EntityPredicate> p_301310_, Optional<EntityPredicate> p_299336_) boolean
matches
(LootContext p_153419_, List<LootContext> p_153420_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
lightning
-
bystander
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299191_, Optional<ContextAwarePredicate> p_297442_, Optional<ContextAwarePredicate> p_299715_)
-
-
Method Details
-
lightningStrike
public static Criterion<LightningStrikeTrigger.TriggerInstance> lightningStrike(Optional<EntityPredicate> p_301310_, Optional<EntityPredicate> p_299336_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-