Interface Enchantable


@NullMarked @Experimental @NonExtendable public interface Enchantable
Holds if an item is enchantable, allowing for enchantments of the type to be seen in an enchanting table.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    enchantable(@org.checkerframework.checker.index.qual.Positive int level)
     
    @org.checkerframework.checker.index.qual.Positive int
    Gets the current enchantment value level allowed, a higher value allows enchantments with a higher cost to be picked.
  • Method Details

    • enchantable

      @Contract(value="_ -> new", pure=true) static Enchantable enchantable(@org.checkerframework.checker.index.qual.Positive int level)
    • value

      @Contract(pure=true) @org.checkerframework.checker.index.qual.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
      See Also: