2.0 migration guide - CottonMC/LibGui GitHub Wiki
LibGui 2.0 has some breaking changes. Here are the main things you need to update:
CottonCraftingControllerhas been replaced withSyncedGuiDescription, which doesn't take a recipe type. Instead it takes aScreenHandlerTypewhich you can register with Fabric API'sScreenHandlerRegistry.- Custom widgets
WWidget.paintBackgroundhas been renamed topaint. It now also takes theMatrixStackused for screen rendering.- All text rendering methods in
ScreenDrawingalso take a matrix stack now.
- Background painters
VANILLA_9PATCHwas renamed toVANILLAand the oldVANILLAwas removed.
WItemSlot's unusedltrconstructor parameter was removed.