File Details
3.4 Forge: Generics & Better logging
- B
- Dec 13, 2024
- 1.75 MB
- 18
- 1.16.5
- Forge
File Name
Rhizo-forge-3.4.jar
Supported Versions
- 1.16.5
Curse Maven Snippet
Rhizo 3.3 -> 3.4
Generics & Better logging
- Generics support
- Rhizo now provides support for using Java generics to make type wrapper more precise
- For example, calling
list.add(3)onlistwhose type isList<Integer>will now insert an integer 3 into this list instead of inserting aDoublewhich is very likely to cause problem. The same applies to Map and many more types
- better logging
- Rhizo can now extract correct file name and line number when using compiler mode, no more
Thread.java:123456in your logging
- Rhizo can now extract correct file name and line number when using compiler mode, no more
- Performance improvement for
JS functions as Java interface- The invoking of interface proxy and abstract class proxy is simplified, reducing memory allocation and provides better performance, because less object creations and computations are needed
- This improvement will be more apparent if you have lots of callbacks as Java method parameters, for example
event => {...}
- more helper methods in NBTUtils