mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-23 16:18:29 -05:00
2373a54507
- **(Slightly source-breaking change)** Change the return type of `Storage#iterator` and `Storage#iterable` from `Iterator<StorageView<T>>` to `Iterator<? extends StorageView<T>>` to allow returning a list directly. Most modders shouldn't be affected by this (this only broke one call site in the whole module). - Precise that using the iterator or a view after the transaction is closed is "undefined behavior". Also specify that calling remove on the iterator is not allowed. - Add `StorageView#getUnderlyingView` to be able to tell if some views are equal. This is useful to **compute the contents of multiple storage views without duplicates** (see testmod). - Expose the lifecycle of the transaction manager cleanly with an enum. - Definalize some methods in `SingleStackStorage` to allow custom implementations of some of them if needed. - Add a note to `BlockApiLookup` to fix #1998. - Play the composter empty sound when it is emptied through the transfer API, as a comment in the source code suggests. Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> |
||
---|---|---|
.. | ||
main | ||
testmod |