Stope 2.12.0 for Forge (1.20-1.20.1)
Curse Maven Snippet
What's new
New API for mod developers:
- Client events: a worn armor piece losing durability.
- Inventory tools: a click plan that rearranges the player's own inventory without silencing the events a refill listens for.
One fix changes what a player sees, in every mod's settings screen: an on/off row or a row that steps through choices keeps its tooltip after it is clicked, where it lost it at the first click. Mods built for 2.0 through 2.11.0 run on 2.12.0; one that sorts the inventory through a click plan now holds back a refill for a second after the sort in single player too, as it already did on a server.
API
- Added
ArmorWearCallback(experimental, client): the server's update wore the item in one of the player's armor slots, with the armor slot, its index in the player's inventory, the stack, and the uses left, on a server with or without the listening mod.ToolWearCallbackcovers the hands. - Added
InventoryTransport#executeInInventory(experimental, client): starts a click plan whose every click is on a slot over the player's own inventory, without keepingItemDepletedCallbackandItemReplacedCallbacksilent; a plan with any other click, a throw, or a shift click outside the inventory menu throws. - Changed
InventoryTransport#executeRefill: sent as simulated clicks, it takes every inventory slot a click changed as the server's, where a shift click's destination slot was left out. - Changed
ToolWearCallback: its Javadoc states that another stack of the same item with more damage taking the slot reads as wear; the behavior is 2.10.0's. - Changed
InventoryTransport#execute: a plan the server answers within the tick it was started in keepsItemDepletedCallbackandItemReplacedCallbacksilent for the 20 ticks after, as the two events' Javadoc says and its own now does; in single player such a plan silenced nothing. - Changed
SettingsScreen: a toggle or choice row keeps its tooltip when its value changes.
This mod has no additional files

