Class EnchantmentPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EnchantmentPredicate
-
public class EnchantmentPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static EnchantmentPredicate
ANY
private Enchantment
enchantment
private MinMaxBounds.IntBound
level
static EnchantmentPredicate[]
NONE
-
Constructor Summary
Constructors Constructor Description EnchantmentPredicate()
EnchantmentPredicate(Enchantment p_i49723_1_, MinMaxBounds.IntBound p_i49723_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containedIn(java.util.Map<Enchantment,java.lang.Integer> p_192463_1_)
static EnchantmentPredicate
fromJson(com.google.gson.JsonElement p_192464_0_)
static EnchantmentPredicate[]
fromJsonArray(com.google.gson.JsonElement p_192465_0_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final EnchantmentPredicate ANY
-
NONE
public static final EnchantmentPredicate[] NONE
-
enchantment
private final Enchantment enchantment
-
level
private final MinMaxBounds.IntBound level
-
-
Constructor Detail
-
EnchantmentPredicate
public EnchantmentPredicate()
-
EnchantmentPredicate
public EnchantmentPredicate(@Nullable Enchantment p_i49723_1_, MinMaxBounds.IntBound p_i49723_2_)
-
-
Method Detail
-
containedIn
public boolean containedIn(java.util.Map<Enchantment,java.lang.Integer> p_192463_1_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
fromJson
public static EnchantmentPredicate fromJson(@Nullable com.google.gson.JsonElement p_192464_0_)
-
fromJsonArray
public static EnchantmentPredicate[] fromJsonArray(@Nullable com.google.gson.JsonElement p_192465_0_)
-
-