Game
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
Getter
Return Type:
Collection<BlockState>
blockStates() as Collection<BlockState>
Return Type:
Collection<BlockState>
Getter
Return Type:
Collection<Enchantment>
enchantments() as Collection<Enchantment>
Return Type:
Collection<Enchantment>
Getter
Return Type:
Collection<EntityType<Entity>>
entityTypes() as Collection<EntityType<Entity>>
Return Type:
Collection<EntityType<Entity>>
Getter
Return Type:
Collection<IItemStack>
items() as Collection<IItemStack>
Return Type:
Collection<IItemStack>
localize(translationKey as string) as string
Returns: a localized String
Parameters:
translationKey: string
Type: string
Return Type:
string
Getter
Return Type:
Collection<IRecipeManager<Recipe>>
recipeTypes() as Collection<IRecipeManager<Recipe>>
Return Type:
Collection<IRecipeManager<Recipe>>
Getter
Return Type:
Collection<VillagerProfession>
villagerProfessions() as Collection<VillagerProfession>
Return Type:
Collection<VillagerProfession>