Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Game

Module that provides some general game-related functions

Index

Functions

dialogMessage

  • dialogMessage(message: string, title: string): void
  • Displays android AlertDialog with given message and dialog title

    Parameters

    • message: string

      message to be displayed

    • title: string

      title of the AlertDialog

    Returns void

getDifficulty

  • getDifficulty(): number

getEngineVersion

  • getEngineVersion(): string

getGameMode

  • getGameMode(): number

getMinecraftVersion

  • getMinecraftVersion(): string

message

  • message(msg: string): void
  • Writes message to the chat. Message can be formatted using Native.Color values

    Parameters

    • msg: string

      message to be displayed

    Returns void

prevent

  • prevent(): void
  • Prevents current callblack function from being called in Minecraft. For most callbacks it prevents default game behaviour

    Returns void

setDifficulty

  • setDifficulty(difficulty: number): void

setGameMode

  • setGameMode(gameMode: number): void

tipMessage

  • tipMessage(msg: string): void
  • Writes message above the hot bar. Message can be formatted using Native.Color values

    Parameters

    • msg: string

      message to be displayed

    Returns void

Generated using TypeDoc