Package net.lax1dude.eaglercraft.v1_8
Class EagRuntime
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.EagRuntime
-
public class EagRuntime 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 EagRuntime()
-
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
debugPrintStackTrace(java.lang.Throwable t)
static void
debugPrintStackTraceToSTDERR(java.lang.Throwable t)
static void
destroy()
static void
displayFileChooser(java.lang.String mime, java.lang.String ext)
static void
dumpStack()
static void
exit()
static boolean
fileChooserHasResult()
static void
freeByteBuffer(ByteBuffer floatBuffer)
static void
freeFloatBuffer(FloatBuffer byteBuffer)
static void
freeIntBuffer(IntBuffer intBuffer)
static long
freeMemory()
static java.lang.String
getClipboard()
static IClientConfigAdapter
getConfiguration()
static FileChooserResult
getFileChooserResult()
static EnumPlatformAgent
getPlatformAgent()
static EnumPlatformOS
getPlatformOS()
static EnumPlatformType
getPlatformType()
static java.lang.String
getRecText()
static byte[]
getResourceBytes(java.lang.String path)
static java.util.List<java.lang.String>
getResourceLines(java.lang.String path)
static java.io.InputStream
getResourceStream(java.lang.String path)
static java.lang.String
getResourceString(java.lang.String path)
static java.lang.String
getStackTrace(java.lang.Throwable t)
static void
getStackTrace(java.lang.Throwable t, java.util.function.Consumer<java.lang.String> ret)
static java.lang.String[]
getStackTraceElements(java.lang.Throwable t)
static byte[]
getStorage(java.lang.String data)
static java.lang.String
getUserAgentString()
static java.lang.String
getVersion()
static long
maxMemory()
static void
openCreditsPopup(java.lang.String text)
static void
openLink(java.lang.String url)
static boolean
recSupported()
static boolean
requireSSL()
static void
setClipboard(java.lang.String text)
static void
setStorage(java.lang.String name, byte[] data)
static void
showPopup(java.lang.String msg)
static void
toggleRec()
static long
totalMemory()
-
-
-
Method Detail
-
getVersion
public static java.lang.String getVersion()
-
create
public static void create()
-
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()
-
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 floatBuffer)
-
freeIntBuffer
public static void freeIntBuffer(IntBuffer intBuffer)
-
freeFloatBuffer
public static void freeFloatBuffer(FloatBuffer byteBuffer)
-
getResourceBytes
public static byte[] getResourceBytes(java.lang.String path)
-
getResourceStream
public static java.io.InputStream getResourceStream(java.lang.String path)
-
getResourceString
public static java.lang.String getResourceString(java.lang.String path)
-
getResourceLines
public static java.util.List<java.lang.String> getResourceLines(java.lang.String path)
-
debugPrintStackTraceToSTDERR
public static void debugPrintStackTraceToSTDERR(java.lang.Throwable t)
-
getStackTrace
public static void getStackTrace(java.lang.Throwable t, java.util.function.Consumer<java.lang.String> ret)
-
getStackTraceElements
public static java.lang.String[] getStackTraceElements(java.lang.Throwable t)
-
getStackTrace
public static java.lang.String getStackTrace(java.lang.Throwable t)
-
debugPrintStackTrace
public static void debugPrintStackTrace(java.lang.Throwable t)
-
dumpStack
public static void dumpStack()
-
exit
public static void exit()
-
maxMemory
public static long maxMemory()
-
totalMemory
public static long totalMemory()
-
freeMemory
public static long freeMemory()
-
requireSSL
public static boolean requireSSL()
-
showPopup
public static void showPopup(java.lang.String msg)
-
getClipboard
public static java.lang.String getClipboard()
-
setClipboard
public static void setClipboard(java.lang.String text)
-
openLink
public static void openLink(java.lang.String url)
-
displayFileChooser
public static void displayFileChooser(java.lang.String mime, java.lang.String ext)
-
fileChooserHasResult
public static boolean fileChooserHasResult()
-
getFileChooserResult
public static FileChooserResult getFileChooserResult()
-
setStorage
public static void setStorage(java.lang.String name, byte[] data)
-
getStorage
public static byte[] getStorage(java.lang.String data)
-
getConfiguration
public static IClientConfigAdapter getConfiguration()
-
getRecText
public static java.lang.String getRecText()
-
toggleRec
public static void toggleRec()
-
recSupported
public static boolean recSupported()
-
openCreditsPopup
public static void openCreditsPopup(java.lang.String text)
-
-