Game
Index
Interfaces
Type Aliases
Variables
Functions
Interfaces
Option
Option instance, which can be obtained via Game.getOption.
canModify
Can option be changed in game settings.
Returns boolean
getBoolean
Gets boolean value of option, suitable for boolean OptionType.
Returns boolean
getFloat
Gets boolean value of option, suitable for float and float slider OptionTypes.
Returns number
getFloatMax
Gets maximum value in slider range, suitable for float slider OptionType.
Returns number
getFloatMin
Gets minimum value in slider range, suitable for float slider OptionType.
Returns number
getInt
Gets boolean value of option, suitable for int and int slider OptionTypes.
Returns number
getIntMax
Gets maximum value in slider range, suitable for int slider OptionType.
Returns number
getIntMin
Gets minimum value in slider range, suitable for int slider OptionType.
Returns number
getPointer
- internal
Returns number
getString
Gets boolean value of option, suitable for string OptionType.
Returns string
getType
Gets numeric option type, which can be used to determine data type and retrieve proper value.
Returns number
Type Aliases
OptionType
Option types, which can be used to determine option data:
Type | Name | Description |
---|---|---|
0 | None | Internal type, it cannot be used. |
1 | Boolean | true or false switch. |
2 | Float | Field with float value. |
3 | Float Slider | Slider with float value in specified ranges. |
4 | String | Field with string text value. |
5 | Int | Field with integer value. |
6 | Int Slider | Slider with integer value in specified ranges. |
Variables
isDeveloperModeinternal
true
if developer mode was enabled in Inner Core config.
spendItemsInCreativeinternal
true
if Inner Core config allows spending items in creative.
Functions
dialogMessage
Displays android.app.AlertDialog with given message and dialog title. Message can be mixed with HTML-like formatting, for example
<b>I'm a bold</b><br/><i>I'm a italic</i>
.Parameters
message: any
message to be displayed
title: any
title before message
Returns void
getDifficulty
Returns number
Current game difficulty, one of the EGameDifficulty values.
getEngineVersion
String containing current Core Engine version.
Returns string
"2.1"
getGameMode
Returns number
Current level game mode, one of the EGameMode values.
getMinecraftVersion
String containing current Minecraft version.
Returns string
"1.16.201"
or"1.11.4"
getOption
Retrieves option by requested name, which instance could be used for getting values.
Parameters
name: string
option name, suitable names could be found in your "options.txt" file or via Game.getOptions
Returns Nullable<Option>
getOptions
Fetches available option names, which can be used to obtain values via Game.getOption.
Returns string[]
isActionPrevented
Returns boolean
true
if the current callback function has already been prevented from being called in Minecraft using Game.prevent,false
otherwise.
isDedicatedServer
Allows you to determine whether current instance of game has a client or not (clientless game requires a server core, e.g. Zote Core (GitHub)).
Returns boolean
isItemSpendingAllowed
Parameters
optionalplayerUid: number
Returns boolean
true
if item spending allowed or player in creative.
message
Writes message to the chat. Message can be formatted using EColor values.
Parameters
message: any
message to be displayed
Returns void
prevent
Prevents current callback function from being called in Minecraft. For most callbacks it prevents default game behavior.
Returns void
setDifficulty
Sets game difficulty, one of EGameDifficulty values.
Parameters
difficulty: number
game difficulty to be set
Returns void
setGameMode
Sets current level game mode.
Parameters
mode: number
new game mode, should be one of the EGameMode values
Returns void
simulateBackPressed
Emulates native pressing of the back button inside the game, for example, necessary to close current window. *
Returns void
tipMessage
Writes message above the hot bar. Message can be formatted using EColor values.
Parameters
message: any
message to be displayed
Returns void
Module that provides some general game-related functions.