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_298707_, Optional<ContextAwarePredicate> p_299016_, Optional<ContextAwarePredicate> p_298635_) -
Method Summary
Modifier and TypeMethodDescriptionlightningStrike
(Optional<EntityPredicate> p_301078_, Optional<EntityPredicate> p_301001_) 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_298707_, Optional<ContextAwarePredicate> p_299016_, Optional<ContextAwarePredicate> p_298635_)
-
-
Method Details
-
lightningStrike
public static Criterion<LightningStrikeTrigger.TriggerInstance> lightningStrike(Optional<EntityPredicate> p_301078_, Optional<EntityPredicate> p_301001_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-