MCGame

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

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

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.

crafttweaker.api.game.MCGame

Methods

localize

Returns: a localized String

Return type: String

game.localize(translationKey as String);
ParameterTypeDescription
translationKeyStringNo description provided

Properties

NameTypeHas GetterHas Setter
blockTagsCollection<crafttweaker.api.tag.MCTag>truefalse
directionAxisesCollection<crafttweaker.api.util.DirectionAxis>truefalse
effectsCollection<crafttweaker.api.potion.MCPotionEffect>truefalse
entityClassificationsCollection<crafttweaker.api.entity.MCEntityClassification>truefalse
entityTagsCollection<crafttweaker.api.tag.MCTag>truefalse
entityTypesCollection<crafttweaker.api.entity.MCEntityType>truefalse
fluidsCollection<crafttweaker.api.fluid.MCFluid>truefalse
formattingsCollection<crafttweaker.api.text.TextFormatting>truefalse
itemTagsCollection<crafttweaker.api.tag.MCTag>truefalse
itemsCollection<crafttweaker.api.item.IItemStack>truefalse
potionsCollection<crafttweaker.api.potion.MCPotion>truefalse
recipeTypesCollection<crafttweaker.api.registries.IRecipeManager>truefalse