Game Class

The IGame Class is used to obtain general game information. Can be accessed using game

Zengetters

Zengetter What does it do? Return Type Usage
biomes Returns all registered biomes as list List game.biomes
blocks Returns all registered blocks as list List game.blocks
entities Returns all registered entities as list List game.entities
items Returns all registered items as list List game.items
liquids Returns all registered liquids as list List game.liquids
potions Returns all registered potions as list List game.potions

Methods

GetEntity

//getEntity(EntityName)

//essentially the same
val sheep = game.getEntity("sheep");
val sheep1 = <entity:sheep>;

SetLocalization

Sets the localization.
All parameters are strings. game.setLocalization(key, value);
game.setLocalization(lang, key, value);

Localize

Returns a localized String
game.localize(key)
game.localize(key, lang)