Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4984

EnchantmentOffer.getCost() documentation/wording is misleading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 1.14.1-R0.1-SNAPSHOT
    • Yes

      Hey,

      I was searching the minimum level required of an enchantment offer, but it was actually the getter "getCost" documented as Gets the cost in experience levels the player has to pay to enchant his item with this enchantment.

      The value returned is the level required to do the enchantment (what i want), 

      the cost should be 1/2/3 meanwhile it return 6/11/30

            Unassigned Unassigned
            Kuinox Kuinox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: