MCGame
Link to mcgame
Holds general game information. Can be accessed using the game
global keyword
Importing the class
Link to importing-the-class
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 at the very top of the file.
ZenScript Copyimport crafttweaker.api.game.MCGame;
Methods
Link to methods
Name: localize
Returns: a localized String
Return Type: string
ZenScript Copy// MCGame.localize(translationKey as string) as string
game.localize("gui.up");
Parameter | Type | Description |
---|---|---|
Parameter translationKey | Type string | Description No Description Provided |
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Nombre blockStates | Type Collection<MCBlockState> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre blocks | Type Collection<MCBlock> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre directionAxises | Type Collection<DirectionAxis> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre effects | Type Collection<MCPotionEffect> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre enchantments | Type Collection<MCEnchantment> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre entityClassifications | Type Collection<MCEntityClassification> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre entityTypes | Type Collection<MCEntityType> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre fluids | Type Collection<MCFluid> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre formattings | Type Collection<TextFormatting> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre items | Type Collection<IItemStack> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre potions | Type Collection<MCPotion> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre recipeTypes | Type Collection<IRecipeManager> | Has Getter true | Has Setter false | Description No Description Provided |
Nombre villagerProfessions | Type Collection<MCVillagerProfession> | Has Getter true | Has Setter false | Description No Description Provided |