mirror of
https://github.com/SnapEnhance/scripting-docs.git
synced 2026-08-30 20:24:23 +00:00
docs: unsafe classloader & java interfaces
This commit is contained in:
9
index.d.ts
vendored
9
index.d.ts
vendored
@@ -12,8 +12,8 @@ declare function logError(message: any, throwable?: any);
|
||||
declare function shortToast(...messages: string);
|
||||
declare function longToast(...messages: string);
|
||||
|
||||
declare function type(className: string): JavaType | undefined;
|
||||
declare function findClass(className: string): Class<any> | undefined;
|
||||
declare function type(className: string, useModClassLoader?: boolean): JavaType | undefined;
|
||||
declare function findClass(className: string, useModClassLoader?: boolean): Class<any> | undefined;
|
||||
declare function setField(instance: any, fieldName: string, value: any | undefined): void;
|
||||
declare function getField(instance: any, fieldName: string): any | undefined;
|
||||
|
||||
@@ -155,6 +155,11 @@ declare module "ipc" {
|
||||
function broadcast(channel: string, eventName: string, ...args: any[]): void;
|
||||
}
|
||||
|
||||
declare module "java-interfaces" {
|
||||
function runnable(callback: (() => void)): any;
|
||||
function newProxy(javaClass: Class<any>, callback: ((proxy: any, method: any, args: any[]) => any)): any;
|
||||
}
|
||||
|
||||
declare const currentSide: "core" | "manager";
|
||||
|
||||
declare namespace module {
|
||||
|
||||
Reference in New Issue
Block a user