Skip to content

2.1.0

Compare
Choose a tag to compare
@acrylic-style acrylic-style released this 07 Apr 18:11
· 27 commits to main since this release
c194dd4

Changes since 1.2.7:

  • 💥 Moved package from net.blueberrymc.native_util to net.blueberrymc.nativeutil (migration: just remove the underscore)
  • ➕ Added NativeType annotation to add more information about parameters
  • ➕ Added callType and callNonvirtualType methods which takes MethodIDInfo * as first parameter
  • ➕ Added getMethodId(Method) which returns MethodIDInfo * for methods above (make sure to read javadocs before using this method, this method has side effects)
  • ➕ Added getMethodFromId(long, boolean) which takes MethodIDInfo * and is_static as arguments and returns the java.lang.reflect.Method
  • ➕ Added free(long) to free the memory block
  • ➕ Added memset(long, int, int)
  • ➕ Added BoxedValue class to pass the boxed argument to the method which has boxed primitive type as a parameter (See https://github.com/BlueberryMC/NativeUtil/blob/c194dd4f61f7f147fc5f49944db00f537b68d867/src/test/java/net/blueberrymc/nativeutil/NativeUtilTest.java#L40-L43 for example)
  • ➖ Removed Benchmark class from test source