Game Class

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

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.


Zengetter What does it do? Return Type Usage
biomes Returns all registered biomes as list List<IBiomes> game.biomes
blocks Returns all registered blocks as list List<IBlockDefinition> game.blocks
entities Returns all registered entities as list List<IEntityDefinition> game.entities
items Returns all registered items as list List<IItemDefinition> game.items
liquids Returns all registered liquids as list List<ILiquidDefinition> game.liquids
potions Returns all registered potions as list List<IPotion> game.potions




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


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


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