Classes

Enumerations

Functions

Interfaces

Namespaces

Type Aliases

Variables

Functions

  • Internal

    Method provided to log inherited Rhino class type and determine which instance is used.

    Parameters

    • obj: any

    Returns string

    Something like java.lang.Class.getName().

  • Displays android.widget.Toast with specified message. If this function is called more then once, messages are stacked and displayed together.

    Parameters

    • message: any

    Returns void

  • Function that must be written in launcher.js to enable multiplayer configuration. Client mods must not affect on the world. They will not be taken into account in mod synchronization during the connection.

    Parameters

    • args: {
          isClientOnly: boolean;
          name?: string;
          version?: string;
      }
      • isClientOnly: boolean

        If true, mod is only client.

      • Optionalname?: string

        Unique readable network name of the mod.

        Value "auto" here means determine mod.info property, which is preferred in most cases.

        "auto"
        
      • Optionalversion?: string

        Mod version.

        Value "auto" here means determine mod.info property, which is preferred in most cases.

        "auto"
        

    Returns void

  • Exports object from library using specified name.

    Parameters

    • name: string

      object name to be used when calling IMPORT. If the name contains a column (":"), the number after column is used to specify version of the library this export corresponds to. To provide backward compatibility, library authors can use multiple exports for different library versions inside a single file. This mechanism currently works only for library dependencies

    • lib: any

      object to be exported with specified name, can be of any valid js/java type

    Returns void

  • Returns number

    Current Core Engine API level (12).

  • Returns {
        array: number[];
        main: number;
        str: string;
    }

    Minecraft version information in several variants.

    • array: number[]

      Array containing three version numbers.

      [1, 16, 201] or [1, 11, 4]
      
    • main: number

      Version number.

      16 or 11
      
    • str: string

      String version representation, three dot-separated numbers.

      "1.16.201" or "1.11.4"
      
  • Imports library dependency. Libraries should be stored in the "libraryDir" directory, specified in your build.config. You can either import the whole library or single function/value using value parameter.

    Parameters

    • name: string

      library name specified in the library's EXPORT declaration

    • Optionalvalue: string

      name of the function or value you wish to import, or "*" to import the whole library. Defaults to importing the whole library

    Returns void

  • Injects methods from C++ into the target object to use in the mod.

    Parameters

    • name: string

      name of the module, as registered from native code

    • target: object

      target object, where all the methods from native module will be injected

    Returns any

  • Same as IMPORT, consider using IMPORT instead.

    Parameters

    • name: string
    • Optionalvalue: string

    Returns void

  • Library declaration, specifies all the information about library it is called from. Cannot be called from user code.

    Parameters

    • description: {
          api:
              | "CoreEngine"
              | "AdaptedScript"
              | "PrefsWinAPI"
              | "Preloader";
          dependencies?: string[];
          name: string;
          shared: boolean;
          version: number;
      }

      object containing all the required information about the library

      • api:
            | "CoreEngine"
            | "AdaptedScript"
            | "PrefsWinAPI"
            | "Preloader"

        API name.

      • Optionaldependencies?: string[]

        List of names of libraries that should be loaded before the current library is loaded. Every entry should be either just a library name or library name and version separated by a column (":").

      • name: string

        Library name, used to avoid conflicts when several mods have the same library installed.

      • shared: boolean

        If set to true, the context of the library is shared between mods to allow for better integration.

      • version: number

        Library version, used to load the latest library version if different mods have different library version installed.

    Returns void

  • Runs custom source in the specified context by it's name. Define custom sources using "sourceType": "custom" for the source in your build.config.

    Parameters

    • name: string

      path to the executable; can be built the way built-in source types are built

    • Optionalscope: object

      additional scope to be added to the current context

    Returns void

  • Runs specified function in the client thread. Same as runOnMainThread, but for the client side.

    Parameters

    • func: (() => void)

      function to be run in the client thread

        • (): void
        • Returns void

    Returns void

    2.2.1b96

  • Runs specified function in the main thread.

    Parameters

    • func: (() => void)

      function to be run in the main thread

        • (): void
        • Returns void

    Returns void

  • Allows to create new JS modules imported from Java code and use it in the mod.

    Type Parameters

    • T = any

    Parameters

    • name: string

      name of the module, as registered from Java code

    Returns T

    JS module, implemented in Java code.

  • Allows to create new JS modules imported from C++ code and use it in the mod.

    Type Parameters

    • T = any

    Parameters

    • name: string

      name of the module, as registered from native code

    Returns T

    JS module, implemented in native (C++) code.

Type Aliases

ArmorType:
    | "helmet"
    | "chestplate"
    | "leggings"
    | "boots"

String types of armor to be specified when calling Item.createArmorItem.

DefaultRenderTemplate: ArmorType

Default render templates used inside of Inner Core, currently there are only default armor models.

ItemInstanceArray: [number, number, number, ItemExtraData?]

Array of three or four elements representing item ID, count, data and extra respectively. Uses in block drop functions.

jbyte: number

Type used to mark Java bytes.

Nullable<T>: T | null

Most methods must return null if value is not presented.

Type Parameters

  • T
Scriptable: {
    [key: string]: any;
}

Flattened hieracly, extendable in declarations.

Backwards compatibility.

Variables

__config__: Config

Main mod configuration manager, settings are stored in config.json file.

__dir__: string

Full path to the mod's directory, ends with "/".

__mod__: ModJsAdapter

Mostly internal variable determined to be useful for control mod lifecycle, configuration and executables.

__modpack__: ModPackJsAdapter

Full path to current modpack (like innercore) directory.

2.2.1b85

__name__: string

Name property, generally loaded from mod.info.

__packdir__: string

Full path to current selected pack (like Inner Core) directory.

__version__: number

Minecraft version code, for now, always 16.

2.2.0b75

BlockID: {
    [key: string]: number;
}

Object containing custom block string IDs as keys and their numeric IDs as values.

ECS_INVALID_ENTITY: object

2.3.1b115

ECS_TAG_OBJECT: object

2.3.1b115

EntityManager: EcsEntityManager

2.3.1b115

ItemID: {
    [key: string]: number;
}

Object containing custom item string IDs as keys and their numeric IDs as values.

UpdatableAPI: typeof Updatable

Use Updatable instead.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.