Class EffectsChangedTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.EffectsChangedTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- EffectsChangedTrigger
public static class EffectsChangedTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private MobEffectsPredicate
effects
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231553_1_, MobEffectsPredicate p_i231553_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EffectsChangedTrigger.Instance
hasEffects(MobEffectsPredicate p_203917_0_)
boolean
matches(ServerPlayerEntity p_193195_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
effects
private final MobEffectsPredicate effects
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231553_1_, MobEffectsPredicate p_i231553_2_)
-
-
Method Detail
-
hasEffects
public static EffectsChangedTrigger.Instance hasEffects(MobEffectsPredicate p_203917_0_)
-
matches
public boolean matches(ServerPlayerEntity p_193195_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-