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.

ZenScript
Copy
import crafttweaker.api.game.MCGame;

Methods

localize

Returns: a localized String
Return Type: string

ZenScript
Copy
// MCGame.localize(translationKey as string) as string

game.localize("gui.up");
ParameterTypeDescription
translationKeystringNo Description Provided

Properties

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