SPIGOT-4984: EnchantmentOffer.getCost() documentation is misleading

This commit is contained in:
md_5 2019-06-14 19:33:55 +10:00
parent 45690fe9a8
commit 8154c64cc8

View file

@ -60,8 +60,8 @@ public class EnchantmentOffer {
}
/**
* Gets the cost in experience levels the player has to pay to enchant his
* item with this enchantment.
* Gets the cost which is displayed as a number on the right hand side of
* the enchantment offer.
*
* @return cost for this enchantment
*/
@ -70,8 +70,8 @@ public class EnchantmentOffer {
}
/**
* Sets the cost in experience levels the player has to pay to enchant his
* item with this enchantment
* Sets the the cost which is displayed as a number on the right hand side
* of the enchantment offer.
*
* @param cost cost for this enchantment
*/