public class EnchantmentPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EnchantmentPredicate |
ANY |
Constructor and Description |
---|
EnchantmentPredicate() |
EnchantmentPredicate(Enchantment enchantment,
MinMaxBounds levels) |
Modifier and Type | Method and Description |
---|---|
static EnchantmentPredicate |
deserialize(com.google.gson.JsonElement element) |
static EnchantmentPredicate[] |
deserializeArray(com.google.gson.JsonElement element) |
boolean |
test(java.util.Map<Enchantment,java.lang.Integer> enchantmentsIn) |
public static final EnchantmentPredicate ANY
public EnchantmentPredicate()
public EnchantmentPredicate(@Nullable Enchantment enchantment, MinMaxBounds levels)
public boolean test(java.util.Map<Enchantment,java.lang.Integer> enchantmentsIn)
public static EnchantmentPredicate deserialize(@Nullable com.google.gson.JsonElement element)
public static EnchantmentPredicate[] deserializeArray(@Nullable com.google.gson.JsonElement element)