AbstractVillager
Link to abstractvillager
Импорт класса
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 Copyimport crafttweaker.api.entity.type.villager.AbstractVillager;
Implemented Interfaces
Link to implemented-interfaces
AbstractVillager implements the following interfaces. That means all methods defined in these interfaces are also available in AbstractVillager
Методы
Link to методы
Name: getUnhappyCounter
Return Type: int
ZenScript Copy// AbstractVillager.getUnhappyCounter() as int
myAbstractVillager.getUnhappyCounter();
Name: isTrading
Return Type: boolean
ZenScript Copy// AbstractVillager.isTrading() as boolean
myAbstractVillager.isTrading();
Name: playCelebrateSound
ZenScript Copy// AbstractVillager.playCelebrateSound()
myAbstractVillager.playCelebrateSound();
Name: setUnhappyCounter
ZenScript CopyAbstractVillager.setUnhappyCounter(unhappyCounter as int)
Параметр | Тип |
---|---|
Параметр unhappyCounter | Тип int |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter |
---|---|---|---|
Название isTrading | Тип boolean | Имеет Getter true | Имеет Setter false |
Название unhappyCounter | Тип int | Имеет Getter true | Имеет Setter true |