Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jwulf/eb77162ce3d0cab149b2e83fb52a1412 to your computer and use it in GitHub Desktop.
Save jwulf/eb77162ce3d0cab149b2e83fb52a1412 to your computer and use it in GitHub Desktop.
// filename: ambient-declarations
declare namespace magikcraft.io {
export function getPlugin(): any;
export function getSender(): any;
export function setTimeout(fn: Function, ms: number): number
export function clearTimeout(handle: number);
export function doNTimes(fn: Function, numberOfTimes: number, callbackFn?: Function, delayms?: number);
}
declare namespace template {
/**
* The greet function is a Hello World example
*/
export function greet(name: string): void;
}
declare const module;
declare const Java;
declare const load;
declare const require;
declare const __magikcraft-sitapati-camera-path: any[];
declare namespace MagikCraftAPI {
export function setMappedItem(APIKEY: string, ItemKey: string, ItemValue: any): void;
export function getMappedItem(APIKEY: string, ItemKey: string): any;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment