-
Added API for Developers that allows:
- Creation of cursor types in runtime (on resource reloads only)
- Registering of elements with a cursor type function
- Implementing an interface to elements to declare its cursor type
- Direct control of the current cursor type
-
Added pt_br translation
-
API Changes for 3.1.0
-
Renamed
CursorTypeRegistrar
toElementRegistrar
- Rename
ElementCursorTypeFunction
toCursorTypeFunction
- Rename
-
Replaced
CursorTypeFactory
withCursorTypeRegistrar
- use
CursorType#of(String)
orCursorTypeRegistrar#register(String)
to create aCursorType
- use
CursorTypeRegistrar#register(CursorType...)
to register multipleCursorType
objects
- use
-
The access and packages of some internal classes have been modified
-
Sorry for the breaking changes, figured I should do it while it has only been a couple days. Didn't want to bump the major version so quickly too. Hopefully no one has used the 3.0.0 API yet.
I also deleted the 3.0.0 version, it had like a hundred downloads. That was a really stupid idea because now it won't prompt users to update, so I reuploaded it. I'll try not to break the API again, this is my first mod and can't help myself from refactoring stuffs :))
-
Does anyone even read this
-
- Added API for Developers that allows:
- Creation of cursor types
- Registering of elements with a cursor type function
- Implementing an interface to elements to declare its cursor type
- Direct control of the current cursor type
- Backport of v2.4.3+1.21-1.21.1 for Minecraft 1.20.1
- Fixed cursor type getting ignored on some elements of nested parent elements.
- Fixed fake cursor type (used internally)
default_force
getting saved in config.
- Reverted change that improves widget detection. It was too good- it detected elements behind other elements and would change the cursor unexpectedly.
- Add check for advancement screen tabs
- Add check for server icon play button
- Add option to toggle adaptive cursor on advancement screen tabs
- Add option to toggle adaptive cursor on server icon play button
- Refactor GUI Cursor Handlers to use Mixin Accessors and Invokers instead of VarHandles and MethodHandles.
- Improve widget detection. Elements (for the most part) no longer have to be accessed through
ParentElement#children
to be detected. - Improve grabbing detection. Check if mouse1 is held instead of using unreliable
AbstractParentElement#isDragging
- Detect visible screen in-game even when the current screen of the minecraft client is technically null.
- Support v2.4.0 for Minecraft versions 1.21.2-1.21.3
- Support v2.4.0 for Minecraft versions 1.21-1.21.1
- Fixed cursor getting stuck to grabbing in 1.21 when a button is pressed then an item is grabbed in the same GUI.