public class MobEffectsPredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MobEffectsPredicate.InstancePredicate |
Modifier and Type | Field and Description |
---|---|
static MobEffectsPredicate |
ANY |
private java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> |
effects |
Constructor and Description |
---|
MobEffectsPredicate(java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> effects) |
Modifier and Type | Method and Description |
---|---|
MobEffectsPredicate |
addEffect(Effect p_204015_1_) |
static MobEffectsPredicate |
any() |
static MobEffectsPredicate |
deserialize(com.google.gson.JsonElement element) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(Entity entityIn) |
boolean |
test(LivingEntity entityIn) |
boolean |
test(java.util.Map<Effect,EffectInstance> potions) |
public static final MobEffectsPredicate ANY
private final java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> effects
public MobEffectsPredicate(java.util.Map<Effect,MobEffectsPredicate.InstancePredicate> effects)
public static MobEffectsPredicate any()
public MobEffectsPredicate addEffect(Effect p_204015_1_)
public boolean test(Entity entityIn)
public boolean test(LivingEntity entityIn)
public boolean test(java.util.Map<Effect,EffectInstance> potions)
public static MobEffectsPredicate deserialize(@Nullable com.google.gson.JsonElement element)
public com.google.gson.JsonElement serialize()