Class EffectsChangedTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EffectsChangedTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- EffectsChangedTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_149271_, MobEffectsPredicate p_149272_, EntityPredicate.Composite p_149273_)
-
Method Summary
Modifier and TypeMethodDescriptiongotEffectsFrom(EntityPredicate p_149278_)
hasEffects(MobEffectsPredicate p_26781_)
boolean
matches(ServerPlayer p_149275_, LootContext p_149276_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_26783_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
effects
-
source
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_149271_, MobEffectsPredicate p_149272_, EntityPredicate.Composite p_149273_)
-
-
Method Details
-
hasEffects
-
gotEffectsFrom
-
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-