Class TeaVMUtils


  • public class TeaVMUtils
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Summary

      Constructors 
      Constructor Description
      TeaVMUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addEventListener​(org.teavm.jso.JSObject obj, java.lang.String name, org.teavm.jso.JSObject handler)  
      static byte[] arrayBufferToBytes​(org.teavm.jso.typedarrays.ArrayBuffer buf)  
      static void freeDataURL​(java.lang.String url)  
      static java.lang.String getDataURL​(org.teavm.jso.typedarrays.ArrayBuffer buf, java.lang.String mime)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TeaVMUtils

        public TeaVMUtils()
    • Method Detail

      • freeDataURL

        public static void freeDataURL​(java.lang.String url)
      • getDataURL

        public static java.lang.String getDataURL​(org.teavm.jso.typedarrays.ArrayBuffer buf,
                                                  java.lang.String mime)
      • addEventListener

        public static void addEventListener​(org.teavm.jso.JSObject obj,
                                            java.lang.String name,
                                            org.teavm.jso.JSObject handler)
      • arrayBufferToBytes

        public static final byte[] arrayBufferToBytes​(org.teavm.jso.typedarrays.ArrayBuffer buf)