Class MobEffectsPredicate.InstancePredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.MobEffectsPredicate.InstancePredicate
-
- Enclosing class:
- MobEffectsPredicate
public static class MobEffectsPredicate.InstancePredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
ambient
private MinMaxBounds.IntBound
amplifier
private MinMaxBounds.IntBound
duration
private java.lang.Boolean
visible
-
Constructor Summary
Constructors Constructor Description InstancePredicate()
InstancePredicate(MinMaxBounds.IntBound p_i49709_1_, MinMaxBounds.IntBound p_i49709_2_, java.lang.Boolean p_i49709_3_, java.lang.Boolean p_i49709_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MobEffectsPredicate.InstancePredicate
fromJson(com.google.gson.JsonObject p_193464_0_)
boolean
matches(EffectInstance p_193463_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
amplifier
private final MinMaxBounds.IntBound amplifier
-
duration
private final MinMaxBounds.IntBound duration
-
ambient
@Nullable private final java.lang.Boolean ambient
-
visible
@Nullable private final java.lang.Boolean visible
-
-
Constructor Detail
-
InstancePredicate
public InstancePredicate(MinMaxBounds.IntBound p_i49709_1_, MinMaxBounds.IntBound p_i49709_2_, @Nullable java.lang.Boolean p_i49709_3_, @Nullable java.lang.Boolean p_i49709_4_)
-
InstancePredicate
public InstancePredicate()
-
-
Method Detail
-
matches
public boolean matches(@Nullable EffectInstance p_193463_1_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
fromJson
public static MobEffectsPredicate.InstancePredicate fromJson(com.google.gson.JsonObject p_193464_0_)
-
-