PHP Class pocketmine\entity\Villager

Inheritance: extends Animal, implements NPC, implements pocketmine\entity\Ageable
显示文件 Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$height
$length
$width

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
getName ( ) : string
getProfession ( ) : integer
isBaby ( )
setProfession ( integer $profession ) Sets the villager profession
spawnTo ( Player $player )

Protected Methods

Method Description
initEntity ( )

Method Details

__construct() public method

public __construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
$chunk pocketmine\level\format\FullChunk
$nbt pocketmine\nbt\tag\CompoundTag

getName() public method

public getName ( ) : string
return string

getProfession() public method

public getProfession ( ) : integer
return integer

initEntity() protected method

protected initEntity ( )

isBaby() public method

public isBaby ( )

setProfession() public method

Sets the villager profession
public setProfession ( integer $profession )
$profession integer

spawnTo() public method

public spawnTo ( Player $player )
$player pocketmine\Player

Property Details

$height public_oe property

public $height

$length public_oe property

public $length

$width public_oe property

public $width