PHP Class pocketmine\entity\Villager

Inheritance: extends Animal, implements NPC, implements pocketmine\entity\Ageable
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Méthodes publiques

Свойство Type Description
$height
$length
$width

Méthodes publiques

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

Méthodes protégées

Méthode Description
initEntity ( )

Method Details

__construct() public méthode

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

getName() public méthode

public getName ( ) : string
Résultat string

getProfession() public méthode

public getProfession ( ) : integer
Résultat integer

initEntity() protected méthode

protected initEntity ( )

isBaby() public méthode

public isBaby ( )

setProfession() public méthode

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

spawnTo() public méthode

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