public class EnchantmentPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EnchantmentPredicate |
ANY |
private Enchantment |
enchantment |
private MinMaxBounds |
levels |
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
private final Enchantment enchantment
private final MinMaxBounds levels
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)