Class PlatformRuntime


  • public class PlatformRuntime
    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)
    • Field Detail

      • win

        public static org.teavm.jso.browser.Window win
      • doc

        public static org.teavm.jso.dom.html.HTMLDocument doc
      • parent

        public static org.teavm.jso.dom.html.HTMLElement parent
      • canvas

        public static org.teavm.jso.dom.html.HTMLCanvasElement canvas
    • Constructor Detail

      • PlatformRuntime

        public PlatformRuntime()
    • Method Detail

      • create

        public static void create()
      • youEagler

        public static org.teavm.jso.JSObject youEagler()
      • destroy

        public static void destroy()
      • getUserAgentString

        public static java.lang.String getUserAgentString()
      • getGLVersion

        public static java.lang.String getGLVersion()
      • getGLRenderer

        public static java.lang.String getGLRenderer()
      • allocateByteBuffer

        public static ByteBuffer allocateByteBuffer​(int length)
      • allocateIntBuffer

        public static IntBuffer allocateIntBuffer​(int length)
      • allocateFloatBuffer

        public static FloatBuffer allocateFloatBuffer​(int length)
      • freeByteBuffer

        public static void freeByteBuffer​(ByteBuffer byteBuffer)
      • freeIntBuffer

        public static void freeIntBuffer​(IntBuffer intBuffer)
      • freeFloatBuffer

        public static void freeFloatBuffer​(FloatBuffer floatBuffer)
      • downloadRemoteURI

        public static void downloadRemoteURI​(java.lang.String assetPackageURI,
                                             java.util.function.Consumer<org.teavm.jso.typedarrays.ArrayBuffer> cb)
      • downloadRemoteURI

        public static org.teavm.jso.typedarrays.ArrayBuffer downloadRemoteURI​(java.lang.String assetPackageURI)
      • isDebugRuntime

        public static boolean isDebugRuntime()
      • writeCrashReport

        public static void writeCrashReport​(java.lang.String crashDump)
      • removeEventHandlers

        public static void removeEventHandlers()
      • getStackTrace

        public static void getStackTrace​(java.lang.Throwable t,
                                         java.util.function.Consumer<java.lang.String> ret)
      • printJSExceptionIfBrowser

        public static boolean printJSExceptionIfBrowser​(java.lang.Throwable t)
      • exit

        public static void exit()
      • setThreadName

        public static void setThreadName​(java.lang.String string)
      • maxMemory

        public static long maxMemory()
      • totalMemory

        public static long totalMemory()
      • freeMemory

        public static long freeMemory()
      • getCallingClass

        public static java.lang.String getCallingClass​(int backTrace)
      • newDeflaterOutputStream

        public static java.io.OutputStream newDeflaterOutputStream​(java.io.OutputStream os)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • newGZIPOutputStream

        public static java.io.OutputStream newGZIPOutputStream​(java.io.OutputStream os)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • newInflaterInputStream

        public static java.io.InputStream newInflaterInputStream​(java.io.InputStream is)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • newGZIPInputStream

        public static java.io.InputStream newGZIPInputStream​(java.io.InputStream is)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • requireSSL

        public static boolean requireSSL()
      • isRec

        public static boolean isRec()
      • recSupported

        public static boolean recSupported()
      • getRecText

        public static java.lang.String getRecText()
      • getMic

        protected static org.teavm.jso.webaudio.MediaStream getMic()
      • toggleRec

        public static void toggleRec()