Changelog
Update: Stonks 2.1.0 also works with 1.21.1.
Thanks for waiting for Stonks to update to Minecraft 1.21! This update includes some breaking changes to the API, which means the minor version number must be increased by 1 (which is 2.1.0). Get it? Because 21.
- In theory, your existing configurations will works in this version. If your configurations broke in this version, please make a new bug report.
- Mods that have Stonks integration might need to be updated to use the new API. Legacy API will be around until 2.2.0.
Stonks got a new banner!
I hope to finish the new icon design soon, as the previous design doesn't have a good contrast between the white arrow and bright background.
Changes related to code and API
Removal of references to Nahara Modkit
Stonks now no longer have references to Nahara Modkit. However, Stonks still references to Nahara Toolkit for legacy APIs and the current configuration file format.
Moving from Nahara Toolkit Tasks to Java Future API
Most methods that returns Task<T>
will now be marked for removal. Its Future API counterparts are also provided. For example, to use StonksService#queryAllCategories()
but with CompletableFuture
, use StonksService#queryAllCategoriesAsync()
. Nahara Toolkit Tasks will be removed from Stonks in version 2.2.0.
Moving from adapter to Economy
interface
The new Economy
interface should be used over StonksFabricAdapter
economy methods, as it supports fixed-point numbers (through the use of long
). I hope to move most of the code to use Economy
in 2.1.1.
Replacing construction data string with metadata
The new getProductMetadata()
will returns a complex data structure (like JSON or NBT) in the future. Right now, it will always returns DynamicPrimitive
with isString() == true
, which is basically wrapping around the construction data from user's configuration. In the future, this metadata can be used to gather additional info about the product, like its market floor/ceiling price, as well as buy/sell limit.
Dependencies
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Metadata
Release channel
ReleaseVersion number
2.1.0+1.21Loaders
Game versions
1.21–1.21.1Downloads
436Publication date
June 14, 2024 at 6:28 AMPublisher
nahkd123
Owner