FakeInventoryActionManager

A Utility class for performing item movements in the players inventory all within a single game tick.

Use addAction to queue an interaction with the player inventory.

All added actions will be executed at the end of the tick if possible and cleared.

Author

Aton

Functions

Link copied to clipboard
fun addAction(action: (GuiInventory) -> Unit)

Add an action to the list of actions that should be performed.

Link copied to clipboard
fun inTick(event: TickEvent.ClientTickEvent)

Performs the inventory action and skips the rendering of the inventory.