public static class EntityEffectPredicate.EffectData extends Object
Modifier and Type | Field and Description |
---|---|
private Boolean |
ambient |
private NumberRange.IntRange |
amplifier |
private NumberRange.IntRange |
duration |
private Boolean |
visible |
Constructor and Description |
---|
EffectData() |
EffectData(NumberRange.IntRange amplifier,
NumberRange.IntRange duration,
Boolean ambient,
Boolean visible) |
Modifier and Type | Method and Description |
---|---|
static EntityEffectPredicate.EffectData |
fromJson(JsonObject json) |
boolean |
test(StatusEffectInstance statusEffectInstance) |
JsonElement |
toJson() |
private final NumberRange.IntRange amplifier
private final NumberRange.IntRange duration
public EffectData(NumberRange.IntRange amplifier, NumberRange.IntRange duration, @Nullable Boolean ambient, @Nullable Boolean visible)
public EffectData()
public boolean test(@Nullable StatusEffectInstance statusEffectInstance)
public JsonElement toJson()
public static EntityEffectPredicate.EffectData fromJson(JsonObject json)