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