Class EnchantmentPredicate
java.lang.Object
net.minecraft.advancements.criterion.EnchantmentPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EnchantmentPredicate
private final Enchantment
private final MinMaxBounds.IntBound
static final EnchantmentPredicate[]
-
Constructor Summary
ConstructorDescriptionEnchantmentPredicate
(Enchantment p_i49723_1_, MinMaxBounds.IntBound p_i49723_2_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containedIn
(Map<Enchantment, 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
-
Field Details
-
ANY
-
NONE
-
enchantment
-
level
-
-
Constructor Details
-
EnchantmentPredicate
public EnchantmentPredicate() -
EnchantmentPredicate
-
-
Method Details
-
containedIn
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-
fromJsonArray
public static EnchantmentPredicate[] fromJsonArray(@Nullable com.google.gson.JsonElement p_192465_0_)
-