2.0 migration guide - CottonMC/LibGui GitHub Wiki
LibGui 2.0 has some breaking changes. Here are the main things you need to update:
CottonCraftingController
has been replaced withSyncedGuiDescription
, which doesn't take a recipe type. Instead it takes aScreenHandlerType
which you can register with Fabric API'sScreenHandlerRegistry
.- Custom widgets
WWidget.paintBackground
has been renamed topaint
. It now also takes theMatrixStack
used for screen rendering.- All text rendering methods in
ScreenDrawing
also take a matrix stack now.
- Background painters
VANILLA_9PATCH
was renamed toVANILLA
and the oldVANILLA
was removed.
WItemSlot
's unusedltr
constructor parameter was removed.