Core Engine
Index
Namespaces
- ActorRenderer
- AddonEntityRegistry
- Animation
- Armor
- Block
- BlockRenderer
- BlockSource
- BlockState
- Callback
- Commands
- Config
- CustomEnchant
- Debug
- Dimensions
- ECS
- Entity
- EntityAI
- EntityAIClass
- FileTools
- Game
- GameController
- GameObjectRegistry
- GenerationUtils
- ICRender
- IDData
- IDRegistry
- Item
- ItemContainer
- ItemModel
- LiquidRegistry
- Logger
- LowLevelUtils
- MobRegistry
- MobSpawnRegistry
- Mod
- ModAPI
- ModPack
- NBT
- Native
- Network
- NetworkEntity
- Particles
- Player
- Recipes
- Render
- RenderMesh
- Resources
- Saver
- SyncedNetworkData
- TagRegistry
- Threading
- TileEntity
- ToolAPI
- Translation
- UI
- Updatable
- UpdatableScheduler
- World
- WorldRenderer
Classes
- ActorRenderer
- AttachableRender
- BlockSource
- BlockState
- Config
- CustomBiome
- CustomEntity
- CustomScale
- EcsActionQueue
- EcsAddComponents
- EcsQuery
- EcsRemoveComponents
- EntityAIClass
- EntityAIWatcher
- EntityModel
- EntityModelWatcher
- GameObject
- IntFlatMap
- ItemContainer
- ItemContainerSlot
- ItemExtraData
- NetworkClient
- NetworkConnectedClientList
- NetworkEntity
- NetworkEntityType
- PlayerActor
- Render
- RenderMesh
- ShaderUniformSet
- SyncedNetworkData
- Texture
- UpdatableHandle
- UpdatableSchedulerScope
Interfaces
Variables
Type Aliases
Enumerations
Functions
Variables
constBlockID
constECS_INVALID_ENTITYsince: 2.3.1b115
constECS_TAG_OBJECTsince: 2.3.1b115
constEntityManagersince: 2.3.1b115
constItemID
Object containing custom item string IDs as keys and their numeric IDs as values.
constUpdatableAPI
Use Updatable instead.
__config__
Main mod configuration manager, settings are stored in config.json file.
__dir__
Full path to the mod's directory, ends with "/".
__mod__
Mostly internal variable determined to be useful for control mod lifecycle, configuration and executables.
__modpack__since: 2.2.1b85
Full path to current modpack (like innercore) directory.
__name__
Name property, generally loaded from mod.info.
__packdir__
Full path to current selected pack (like Inner Core) directory.
__version__since: 2.2.0b75
Minecraft version code, for now, always 16.
Type Aliases
ArmorType
String types of armor to be specified when calling Item.createArmorItem.
DefaultRenderTemplate
Default render templates used inside of Inner Core, currently there are only default armor models.
ItemInstanceArray
Array of three or four elements representing item ID, count, data and extra respectively. Uses in block drop functions.
Nullable
Most methods must return null if value is not presented.
Type parameters
- T
Scriptable
Flattened hieracly, extendable in declarations.
Type declaration
[key string]: any
TransferPolicy
Backwards compatibility.
jbyte
Type used to mark Java bytes.
Functions
ConfigureMultiplayer
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 = “auto”
Unique readable network name of the mod.
More about capabilitiesValue
"auto"here means determine mod.info property, which is preferred in most cases.optionalversion: string = “auto”
Mod version.
More about capabilitiesValue
"auto"here means determine mod.info property, which is preferred in most cases.
Returns void
EXPORT
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
IMPORT
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
IMPORT_NATIVE
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
LIBRARY
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
WRAP_JAVA
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.
WRAP_NATIVE
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.
__debug_typecheck__
- 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().
alert
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
getCoreAPILevel
Returns number
Current Core Engine API level (12).
getMCPEVersion
Returns { array: number[]; main: number; str: string }
Minecraft version information in several variants.
array: number[]
Array containing three version numbers.
main: number
Version number.
str: string
String version representation, three dot-separated numbers.
importLib
injectBindingsIntoScope
- since: 3.1.0b126
Parameters
moduleName: string
obj: object
allowOverrides: boolean
Returns void
injectModuleIntoScope
- since: 3.1.0b126
Parameters
moduleName: string
obj: object
allowOverrides: boolean
Returns void
injectModulesIntoScope
- since: 3.1.0b126
Parameters
obj: object
allowOverrides: boolean
Returns void
runCustomSource
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
runOnClientThread
- since: 2.2.1b96
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
Returns void
runOnMainThread
Runs specified function in the main thread.
Parameters
func: () => void
function to be run in the main thread
Returns void
Object containing custom block string IDs as keys and their numeric IDs as values.