Импорт класса

Link to импорт-класса

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;

Name: getBlockStates

Return Type: Collection<BlockState>

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

myGame.getBlockStates();

Name: getBlocks

Return Type: Collection<Block>

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

myGame.getBlocks();

Name: getEnchantments

Return Type: Collection<Enchantment>

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

myGame.getEnchantments();

Name: getEntityTypes

Return Type: Collection<EntityType>

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

myGame.getEntityTypes();

Name: getFluids

Return Type: Collection<Fluid>

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

myGame.getFluids();

Name: getItemStacks

Return Type: Collection<IItemStack>

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

myGame.getItemStacks();

Name: getMobEffects

Return Type: Collection<MobEffect>

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

myGame.getMobEffects();

Name: getPotions

Return Type: Collection<Potion>

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

myGame.getPotions();

Name: getProfessions

Return Type: Collection<VillagerProfession>

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

myGame.getProfessions();

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");
ПараметрТипОписание
Параметр
translationKey
Тип
string
Описание
No Description Provided

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
blockStates
Тип
Collection<BlockState>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
blocks
Тип
Collection<Block>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
effects
Тип
Collection<MobEffect>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
enchantments
Тип
Collection<Enchantment>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
entityTypes
Тип
Collection<EntityType>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
fluids
Тип
Collection<Fluid>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
items
Тип
Collection<IItemStack>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
potions
Тип
Collection<Potion>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
recipeTypes
Тип
Collection<IRecipeManager>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
villagerProfessions
Тип
Collection<VillagerProfession>
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided