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_299319_, Optional<MobEffectsPredicate> p_298712_, Optional<ContextAwarePredicate> p_299215_) -
Method Summary
Modifier and TypeMethodDescriptiongotEffectsFrom
(EntityPredicate.Builder p_300971_) hasEffects
(MobEffectsPredicate.Builder p_299317_) 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_299319_, Optional<MobEffectsPredicate> p_298712_, Optional<ContextAwarePredicate> p_299215_)
-
-
Method Details
-
hasEffects
public static Criterion<EffectsChangedTrigger.TriggerInstance> hasEffects(MobEffectsPredicate.Builder p_299317_) -
gotEffectsFrom
public static Criterion<EffectsChangedTrigger.TriggerInstance> gotEffectsFrom(EntityPredicate.Builder p_300971_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-