Class EffectsChangedTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EffectsChangedTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- EffectsChangedTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<MobEffectsPredicate>
private final Optional<ContextAwarePredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_297502_, Optional<MobEffectsPredicate> p_298484_, Optional<ContextAwarePredicate> p_298058_) -
Method Summary
Modifier and TypeMethodDescriptiongotEffectsFrom
(EntityPredicate.Builder p_298504_) hasEffects
(MobEffectsPredicate.Builder p_300809_) boolean
matches
(ServerPlayer p_149275_, LootContext p_149276_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
effects
-
source
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_297502_, Optional<MobEffectsPredicate> p_298484_, Optional<ContextAwarePredicate> p_298058_)
-
-
Method Details
-
hasEffects
public static Criterion<EffectsChangedTrigger.TriggerInstance> hasEffects(MobEffectsPredicate.Builder p_300809_) -
gotEffectsFrom
public static Criterion<EffectsChangedTrigger.TriggerInstance> gotEffectsFrom(EntityPredicate.Builder p_298504_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-