sisby-folk / inventory-tabs

A minecraft mod that allows swapping to other in-world screens (blocks, entities, etc) via tabs. A fourth-generation rewrite of CakeWhip's InventoryTabs.
https://modrinth.com/mod/inventory-tabs
GNU Lesser General Public License v3.0
6 stars 3 forks source link

Fake More Stuff #8

Closed sisby-folk closed 10 months ago

sisby-folk commented 10 months ago

The mod does a few things fairly "canonically", such as using the interaction manager to click on slots for swapping items to hands, onto the cursor stack, and so on.

This should be replaced by pure packets to the server side, and then only the end state should be played back to the client - this would prevent slots from "flashing" during tab changes and so on.

It's also worth investigating whether something more effective can be achieved than the current setup for MouseUtil - when is the mouse centered in code? can we skip it? or restore the position earlier? Whole frames are rendered with slot highlights affected by the cursor position r ight now.