generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 49
2.0 migration guide
Juuxel edited this page Jun 23, 2020
·
4 revisions
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.