MCGame

Holds general game information. Can be accessed using the game global keyword

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.

import crafttweaker.api.game.MCGame;

Methods

localize

Return Type: string

MCGame.localize(translationKey as string) as string
game.localize("gui.up");
ParameterTypeDescription
translationKeystringNo Description Provided

Properties

NameTypeHas GetterHas Setter
blockStatesCollection<MCBlockState>truefalse
blocksCollection<MCBlock>truefalse
directionAxisesCollection<DirectionAxis>truefalse
effectsCollection<MCPotionEffect>truefalse
entityClassificationsCollection<MCEntityClassification>truefalse
entityTypesCollection<MCEntityType>truefalse
fluidsCollection<MCFluid>truefalse
formattingsCollection<TextFormatting>truefalse
itemsCollection<IItemStack>truefalse
potionsCollection<MCPotion>truefalse
recipeTypesCollection<IRecipeManager>truefalse