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
The predicate that matches any set of effects.
|
| Constructor and Description |
|---|
MobEffectsPredicate(java.util.Map<Potion,MobEffectsPredicate.InstancePredicate> effects) |
| Modifier and Type | Method and Description |
|---|---|
static MobEffectsPredicate |
deserialize(JsonElement element) |
boolean |
test(Entity entityIn) |
boolean |
test(EntityLivingBase entityIn) |
boolean |
test(java.util.Map<Potion,PotionEffect> potions) |
public static final MobEffectsPredicate ANY
public MobEffectsPredicate(java.util.Map<Potion,MobEffectsPredicate.InstancePredicate> effects)
public boolean test(Entity entityIn)
public boolean test(EntityLivingBase entityIn)
public boolean test(java.util.Map<Potion,PotionEffect> potions)
public static MobEffectsPredicate deserialize(JsonElement element)