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.
import crafttweaker.api.villager.VillagerProfession;
Members
Getter
// VillagerProfession.commandString as stringmyVillagerProfession.commandString
Return Type:
string
Getter
// VillagerProfession.name as stringmyVillagerProfession.name
Return Type:
string
name() as string
// VillagerProfession.name() as string;myVillagerProfession.name();
Return Type:
string
Getter
// VillagerProfession.registryName as ResourceLocationmyVillagerProfession.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation
Getter
myVillagerProfession.requestedItems
Return Type:
Set<ItemDefinition>
requestedItems() as Set<Item>
Getter
// VillagerProfession.workSound as SoundEventmyVillagerProfession.workSound
Return Type:
SoundEvent
workSound() as SoundEvent