Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

VillagerProfession

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.

script.zs
import crafttweaker.api.villager.VillagerProfession;

Members

Getter
script.zs
// VillagerProfession.commandString as string
myVillagerProfession.commandString

Return Type: string

Getter
script.zs
// VillagerProfession.name as string
myVillagerProfession.name

Return Type: string

name() as string
script.zs
// VillagerProfession.name() as string;
myVillagerProfession.name();

Return Type: string

Getter
script.zs
// VillagerProfession.registryName as ResourceLocation
myVillagerProfession.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// VillagerProfession.registryName() as ResourceLocation;
myVillagerProfession.registryName();

Return Type: ResourceLocation

Getter
script.zs
// VillagerProfession.requestedItems as Set<Item>
myVillagerProfession.requestedItems

Return Type: Set<ItemDefinition>

requestedItems() as Set<Item>
script.zs
// VillagerProfession.requestedItems() as Set<Item>;
myVillagerProfession.requestedItems();

Return Type: Set<ItemDefinition>

Getter
script.zs
// VillagerProfession.secondaryPoi as Set<Block>
myVillagerProfession.secondaryPoi

Return Type: Set<Block>

secondaryPoi() as Set<Block>
script.zs
// VillagerProfession.secondaryPoi() as Set<Block>;
myVillagerProfession.secondaryPoi();

Return Type: Set<Block>

Getter
script.zs
// VillagerProfession.workSound as SoundEvent
myVillagerProfession.workSound

Return Type: SoundEvent

workSound() as SoundEvent
script.zs
// VillagerProfession.workSound() as SoundEvent;
myVillagerProfession.workSound();

Return Type: SoundEvent