Skip to content

LibGui 16.0.1 for Minecraft 26.1

Choose a tag to compare

@Juuxel Juuxel released this 28 Mar 12:06
· 14 commits to master since this release
809bf79

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 @Environment annotation in WTextField.onPreeditUpdated potentially causing a crash

The original 16.0.0 changelog is included below.

Added

  • New APIs related to official Mojang names:
    • GuiDescription.get/setContainerData
    • SyncedGuiDescription.getLevel
  • Focus change listeners for GuiDescription:
    • GuiDescription.addFocusChangeListener
    • GuiDescription.FocusChangeListener
  • New API for supporting IMEs in text input widgets:
    • WWidget.canFocusForTextInput: must be overridden to return true in all text input widgets
    • WWidget.onPreeditUpdated receives the preedit events

Changed

  • Updated to Minecraft 26.1
  • Moved from JetBrains nullness annotations to JSpecify
  • CottonClientScreen.description and CottonInventoryScreen.description are 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/setPropertyDelegate
  • SyncedGuiDescription.world
  • SyncedGuiDescription.getWorld