Class PlatformRuntime
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.PlatformRuntime
-
public class PlatformRuntime extends java.lang.ObjectCopyright (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 classPlatformRuntime.PlatformIncompatibleExceptionstatic classPlatformRuntime.RuntimeInitializationFailureException
-
Constructor Summary
Constructors Constructor Description PlatformRuntime()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBufferallocateByteBuffer(int length)static FloatBufferallocateFloatBuffer(int length)static IntBufferallocateIntBuffer(int length)static voidcreate()static voiddestroy()static org.teavm.jso.typedarrays.ArrayBufferdownloadRemoteURI(java.lang.String assetPackageURI)static voiddownloadRemoteURI(java.lang.String assetPackageURI, java.util.function.Consumer<org.teavm.jso.typedarrays.ArrayBuffer> cb)static voidexit()static voidfreeByteBuffer(ByteBuffer byteBuffer)static voidfreeFloatBuffer(FloatBuffer floatBuffer)static voidfreeIntBuffer(IntBuffer intBuffer)static longfreeMemory()static java.lang.StringgetCallingClass(int backTrace)static IClientConfigAdaptergetClientConfigAdapter()static java.lang.StringgetGLRenderer()static java.lang.StringgetGLVersion()protected static org.teavm.jso.webaudio.MediaStreamgetMic()static EnumPlatformAgentgetPlatformAgent()static EnumPlatformANGLEgetPlatformANGLE()static EnumPlatformOSgetPlatformOS()static EnumPlatformTypegetPlatformType()static java.lang.StringgetRecText()static voidgetStackTrace(java.lang.Throwable t, java.util.function.Consumer<java.lang.String> ret)static java.lang.StringgetUserAgentString()static booleanisDebugRuntime()static booleanisRec()static longmaxMemory()static java.io.OutputStreamnewDeflaterOutputStream(java.io.OutputStream os)static java.io.InputStreamnewGZIPInputStream(java.io.InputStream is)static java.io.OutputStreamnewGZIPOutputStream(java.io.OutputStream os)static java.io.InputStreamnewInflaterInputStream(java.io.InputStream is)static booleanprintJSExceptionIfBrowser(java.lang.Throwable t)static booleanrecSupported()static voidremoveEventHandlers()static voidrequestANGLE(EnumPlatformANGLE plaf)static booleanrequireSSL()static voidsetThreadName(java.lang.String string)static voidtoggleRec()static longtotalMemory()static voidwriteCrashReport(java.lang.String crashDump)static org.teavm.jso.JSObjectyouEagler()
-
-
-
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()
-
-