Class MobEffectsPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.MobEffectsPredicate
-
public class MobEffectsPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MobEffectsPredicate.InstancePredicate
-
Field Summary
Fields Modifier and Type Field Description static MobEffectsPredicate
ANY
private java.util.Map<Effect,MobEffectsPredicate.InstancePredicate>
effects
-
Constructor Summary
Constructors Constructor Description MobEffectsPredicate(java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> p_i47538_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MobEffectsPredicate
and(Effect p_204015_1_)
static MobEffectsPredicate
effects()
static MobEffectsPredicate
fromJson(com.google.gson.JsonElement p_193471_0_)
boolean
matches(java.util.Map<Effect,EffectInstance> p_193470_1_)
boolean
matches(Entity p_193469_1_)
boolean
matches(LivingEntity p_193472_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final MobEffectsPredicate ANY
-
effects
private final java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> effects
-
-
Constructor Detail
-
MobEffectsPredicate
public MobEffectsPredicate(java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> p_i47538_1_)
-
-
Method Detail
-
effects
public static MobEffectsPredicate effects()
-
and
public MobEffectsPredicate and(Effect p_204015_1_)
-
matches
public boolean matches(Entity p_193469_1_)
-
matches
public boolean matches(LivingEntity p_193472_1_)
-
matches
public boolean matches(java.util.Map<Effect,EffectInstance> p_193470_1_)
-
fromJson
public static MobEffectsPredicate fromJson(@Nullable com.google.gson.JsonElement p_193471_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-