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.Game;

Link to g-

Name: getBlockStates

Return Type: Collection<BlockState>

ZenScript
Copy
// Game.getBlockStates() as Collection<BlockState>

myGame.getBlockStates();

Link to g--1

Name: getBlocks

Return Type: Collection<Block>

ZenScript
Copy
// Game.getBlocks() as Collection<Block>

myGame.getBlocks();

Link to g--2

Name: getEnchantments

Return Type: Collection<Enchantment>

ZenScript
Copy
// Game.getEnchantments() as Collection<Enchantment>

myGame.getEnchantments();

Link to g--3

Name: getEntityTypes

Return Type: Collection<EntityType>

ZenScript
Copy
// Game.getEntityTypes() as Collection<EntityType>

myGame.getEntityTypes();

Link to g--4

Name: getFluids

Return Type: Collection<Fluid>

ZenScript
Copy
// Game.getFluids() as Collection<Fluid>

myGame.getFluids();

Link to g--5

Name: getItemStacks

Return Type: Collection<IItemStack>

ZenScript
Copy
// Game.getItemStacks() as Collection<IItemStack>

myGame.getItemStacks();

Link to g--6

Name: getMobEffects

Return Type: Collection<MobEffect>

ZenScript
Copy
// Game.getMobEffects() as Collection<MobEffect>

myGame.getMobEffects();

Link to g--7

Name: getPotions

Return Type: Collection<Potion>

ZenScript
Copy
// Game.getPotions() as Collection<Potion>

myGame.getPotions();

Link to g--8

Name: getProfessions

Return Type: Collection<VillagerProfession>

ZenScript
Copy
// Game.getProfessions() as Collection<VillagerProfession>

myGame.getProfessions();

Link to g--9

Name: getRecipeTypes

Return Type: Collection<IRecipeManager>

ZenScript
Copy
// Game.getRecipeTypes() as Collection<IRecipeManager>

myGame.getRecipeTypes();

Name: localize

Returns: a localized String
Return Type: string

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

myGame.localize("gui.up");
ParameterTypeDescription
Parameter
translationKey
Type
string
Description
No Description Provided
NameTypeHas GetterHas SetterDescription
Name
blockStates
Type
Collection<BlockState>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
blocks
Type
Collection<Block>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
effects
Type
Collection<MobEffect>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
enchantments
Type
Collection<Enchantment>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
entityTypes
Type
Collection<EntityType>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
fluids
Type
Collection<Fluid>
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<Potion>
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<VillagerProfession>
Has Getter
true
Has Setter
false
Description
No Description Provided