Commit Graph

11 Commits

Author SHA1 Message Date
316e921c18 Add Enchantment cost API (#9856)
Cost is a property of individual enchantments, and is used by vanilla in combination with environmental aspects like tool enchantability and bookshelf count to determine the final cost of an enchantment as shown in an enchanting table.

Having access to the base cost of an enchantment using these vanilla methods can allow plugin developers to determine the "value" of an enchantment, and use it in custom logic where needed. I came across this recently when trying to assign an economic value to enchantments during tool repairing, and noticed these values don't seem to be obtainable under the current API.
2023-11-11 21:09:48 +01:00
39255145b6 chore: cleanup annotations in api adventure patch 2023-03-23 09:49:24 -07:00
7936e7a615 API 'done' 2023-03-14 18:21:11 +01:00
08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
66eb6f7632 API patches 2022-06-07 19:20:30 +02:00
1148687a8d Prepare for 1.19 dev 2022-06-07 18:52:56 +02:00
2253e953c6 more patches 2021-11-24 13:30:53 -08:00
ed6d43ddb0 Prepare for updating server patches 2021-11-23 00:57:41 -08:00
bd48009917 Undeprecate Enchantment#isCursed (#6524) 2021-08-30 09:49:28 -05:00
112c19b45e Implement Translatable in appropriate places (#6248) 2021-08-13 21:11:12 -07:00
b8cf7d380e tons of patches (#5835) 2021-06-14 19:59:31 -07:00