Class PlatformRuntime
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlatformRuntime.PlatformIncompatibleException
static class
PlatformRuntime.RuntimeInitializationFailureException
-
Constructor Summary
Constructors Constructor Description PlatformRuntime()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBuffer
allocateByteBuffer(int length)
static FloatBuffer
allocateFloatBuffer(int length)
static IntBuffer
allocateIntBuffer(int length)
static void
create()
static void
destroy()
static org.teavm.jso.typedarrays.ArrayBuffer
downloadRemoteURI(java.lang.String assetPackageURI)
static void
downloadRemoteURI(java.lang.String assetPackageURI, java.util.function.Consumer<org.teavm.jso.typedarrays.ArrayBuffer> cb)
static void
exit()
static void
freeByteBuffer(ByteBuffer byteBuffer)
static void
freeFloatBuffer(FloatBuffer floatBuffer)
static void
freeIntBuffer(IntBuffer intBuffer)
static long
freeMemory()
static java.lang.String
getCallingClass(int backTrace)
static IClientConfigAdapter
getClientConfigAdapter()
static java.lang.String
getGLRenderer()
static java.lang.String
getGLVersion()
protected static org.teavm.jso.webaudio.MediaStream
getMic()
static EnumPlatformAgent
getPlatformAgent()
static EnumPlatformANGLE
getPlatformANGLE()
static EnumPlatformOS
getPlatformOS()
static EnumPlatformType
getPlatformType()
static java.lang.String
getRecText()
static void
getStackTrace(java.lang.Throwable t, java.util.function.Consumer<java.lang.String> ret)
static java.lang.String
getUserAgentString()
static boolean
isDebugRuntime()
static boolean
isRec()
static long
maxMemory()
static java.io.OutputStream
newDeflaterOutputStream(java.io.OutputStream os)
static java.io.InputStream
newGZIPInputStream(java.io.InputStream is)
static java.io.OutputStream
newGZIPOutputStream(java.io.OutputStream os)
static java.io.InputStream
newInflaterInputStream(java.io.InputStream is)
static boolean
printJSExceptionIfBrowser(java.lang.Throwable t)
static boolean
recSupported()
static void
removeEventHandlers()
static void
requestANGLE(EnumPlatformANGLE plaf)
static boolean
requireSSL()
static void
setThreadName(java.lang.String string)
static void
toggleRec()
static long
totalMemory()
static void
writeCrashReport(java.lang.String crashDump)
static org.teavm.jso.JSObject
youEagler()
-
-
-
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
-
webgl
public static WebGL2RenderingContext webgl
-
-
Method Detail
-
create
public static void create()
-
youEagler
public static org.teavm.jso.JSObject youEagler()
-
destroy
public static void destroy()
-
getPlatformType
public static EnumPlatformType getPlatformType()
-
getPlatformAgent
public static EnumPlatformAgent getPlatformAgent()
-
getUserAgentString
public static java.lang.String getUserAgentString()
-
getPlatformOS
public static EnumPlatformOS getPlatformOS()
-
requestANGLE
public static void requestANGLE(EnumPlatformANGLE plaf)
-
getPlatformANGLE
public static EnumPlatformANGLE getPlatformANGLE()
-
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()
-
getClientConfigAdapter
public static IClientConfigAdapter getClientConfigAdapter()
-
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()
-
-