public class EntityEffectPredicate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityEffectPredicate.EffectData |
Modifier and Type | Field and Description |
---|---|
private Map<StatusEffect,EntityEffectPredicate.EffectData> |
effects |
static EntityEffectPredicate |
EMPTY |
Constructor and Description |
---|
EntityEffectPredicate(Map<StatusEffect,EntityEffectPredicate.EffectData> effects) |
Modifier and Type | Method and Description |
---|---|
static EntityEffectPredicate |
create() |
static EntityEffectPredicate |
fromJson(JsonElement json) |
boolean |
test(Entity entity) |
boolean |
test(LivingEntity livingEntity) |
boolean |
test(Map<StatusEffect,StatusEffectInstance> effects) |
JsonElement |
toJson() |
EntityEffectPredicate |
withEffect(StatusEffect statusEffect) |
public static final EntityEffectPredicate EMPTY
private final Map<StatusEffect,EntityEffectPredicate.EffectData> effects
public EntityEffectPredicate(Map<StatusEffect,EntityEffectPredicate.EffectData> effects)
public static EntityEffectPredicate create()
public EntityEffectPredicate withEffect(StatusEffect statusEffect)
public boolean test(Entity entity)
public boolean test(LivingEntity livingEntity)
public boolean test(Map<StatusEffect,StatusEffectInstance> effects)
public static EntityEffectPredicate fromJson(@Nullable JsonElement json)
public JsonElement toJson()