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
Copy
import crafttweaker.api.game.MCGame;

Name: localize

Returns: a localized String
Return Type: string

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

game.localize("gui.up");
ParameterTypeDescription
Parameter
translationKey
Type
string
Description
No Description Provided
NameTypeHas GetterHas SetterDescription
Name
blockStates
Type
Collection<MCBlockState>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
blocks
Type
Collection<MCBlock>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
directionAxises
Type
Collection<DirectionAxis>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
effects
Type
Collection<MCPotionEffect>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
enchantments
Type
Collection<MCEnchantment>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
entityClassifications
Type
Collection<MCEntityClassification>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
entityTypes
Type
Collection<MCEntityType>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
fluids
Type
Collection<MCFluid>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
formattings
Type
Collection<TextFormatting>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
items
Type
Collection<IItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
potions
Type
Collection<MCPotion>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
recipeTypes
Type
Collection<IRecipeManager>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
villagerProfessions
Type
Collection<MCVillagerProfession>
Has Getter
true
Has Setter
false
Description
No Description Provided