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
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 blockStates | Type Collection<MCBlockState> | Has Getter true | Has Setter false | Description No Description Provided |
이름 blocks | Type Collection<MCBlock> | Has Getter true | Has Setter false | Description No Description Provided |
이름 directionAxises | Type Collection<DirectionAxis> | Has Getter true | Has Setter false | Description No Description Provided |
이름 effects | Type Collection<MCPotionEffect> | Has Getter true | Has Setter false | Description No Description Provided |
이름 enchantments | Type Collection<MCEnchantment> | Has Getter true | Has Setter false | Description No Description Provided |
이름 entityClassifications | Type Collection<MCEntityClassification> | Has Getter true | Has Setter false | Description No Description Provided |
이름 entityTypes | Type Collection<MCEntityType> | Has Getter true | Has Setter false | Description No Description Provided |
이름 fluids | Type Collection<MCFluid> | Has Getter true | Has Setter false | Description No Description Provided |
이름 formattings | Type Collection<TextFormatting> | Has Getter true | Has Setter false | Description No Description Provided |
이름 items | Type Collection<IItemStack> | Has Getter true | Has Setter false | Description No Description Provided |
이름 potions | Type Collection<MCPotion> | Has Getter true | Has Setter false | Description No Description Provided |
이름 recipeTypes | Type Collection<IRecipeManager> | Has Getter true | Has Setter false | Description No Description Provided |
이름 villagerProfessions | Type Collection<MCVillagerProfession> | Has Getter true | Has Setter false | Description No Description Provided |