Interface Enchantable
@NonExtendable
public interface Enchantable
Holds if an item is enchantable, allowing for enchantments of the type to be seen in an enchanting table.
- Since:
- 1.21.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Enchantableenchantable(@Positive int level) @Positive intvalue()Gets the current enchantment value level allowed, a higher value allows enchantments with a higher cost to be picked.
-
Method Details
-
enchantable
- Since:
- 1.21.3
-
value
@Contract(pure=true) @Positive int value()Gets the current enchantment value level allowed, a higher value allows enchantments with a higher cost to be picked.- Returns:
- the value
- Since:
- 1.21.3
- See Also:
-