public static class MobEffectsPredicate.InstancePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
ambient |
private MinMaxBounds |
amplifier |
private MinMaxBounds |
duration |
private java.lang.Boolean |
visible |
Constructor and Description |
---|
InstancePredicate(MinMaxBounds amplifier,
MinMaxBounds duration,
java.lang.Boolean ambient,
java.lang.Boolean visible) |
Modifier and Type | Method and Description |
---|---|
static MobEffectsPredicate.InstancePredicate |
deserialize(com.google.gson.JsonObject object) |
boolean |
test(PotionEffect effect) |
private final MinMaxBounds amplifier
private final MinMaxBounds duration
@Nullable private final java.lang.Boolean ambient
@Nullable private final java.lang.Boolean visible
public InstancePredicate(MinMaxBounds amplifier, MinMaxBounds duration, @Nullable java.lang.Boolean ambient, @Nullable java.lang.Boolean visible)
public boolean test(@Nullable PotionEffect effect)
public static MobEffectsPredicate.InstancePredicate deserialize(com.google.gson.JsonObject object)