Package net.minecraft.predicate.item
Class EnchantmentPredicate
java.lang.Object
net.minecraft.predicate.item.EnchantmentPredicate
public class EnchantmentPredicate extends Object
-
Field Summary
Fields Modifier and Type Field Description static EnchantmentPredicate
ANY
static EnchantmentPredicate[]
ARRAY_OF_ANY
private Enchantment
enchantment
private NumberRange.IntRange
levels
-
Constructor Summary
Constructors Constructor Description EnchantmentPredicate()
EnchantmentPredicate(Enchantment enchantment, NumberRange.IntRange levels)
-
Method Summary
Modifier and Type Method Description static EnchantmentPredicate
deserialize(JsonElement el)
static EnchantmentPredicate[]
deserializeAll(JsonElement el)
JsonElement
serialize()
boolean
test(Map<Enchantment,Integer> map)
-
Field Details
-
ANY
-
ARRAY_OF_ANY
-
enchantment
-
levels
-
-
Constructor Details
-
EnchantmentPredicate
public EnchantmentPredicate() -
EnchantmentPredicate
-
-
Method Details
-
test
-
serialize
-
deserialize
-
deserializeAll
-