LibGui 16.0.1 for Minecraft 26.1
Repository version: 16.0.1+26.1
This is a hotfix release for 16.0.0 that fixes a potential server crash in WTextField.
Fixed
- Missing
@Environmentannotation inWTextField.onPreeditUpdatedpotentially causing a crash
The original 16.0.0 changelog is included below.
Added
- New APIs related to official Mojang names:
GuiDescription.get/setContainerDataSyncedGuiDescription.getLevel
- Focus change listeners for
GuiDescription:GuiDescription.addFocusChangeListenerGuiDescription.FocusChangeListener
- New API for supporting IMEs in text input widgets:
WWidget.canFocusForTextInput: must be overridden to return true in all text input widgetsWWidget.onPreeditUpdatedreceives the preedit events
Changed
- Updated to Minecraft 26.1
- Moved from JetBrains nullness annotations to JSpecify
CottonClientScreen.descriptionandCottonInventoryScreen.descriptionare now final- Root panels of GUI descriptions are now assumed to be nonnull
- WTextField now consumes almost all input events
- This was done to prevent pressing E from closing the screen in this MC version.
Deprecated
GuiDescription.get/setPropertyDelegateSyncedGuiDescription.worldSyncedGuiDescription.getWorld