PHP Class pocketmine\entity\Rabbit

Inheritance: extends Animal
显示文件 Open project: iTXTech/Genisys

Public Properties

Property Type Description
$dropExp
$height
$length
$width

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
getDrops ( )
getName ( ) : string
getRabbitType ( ) : integer
getRandomRabbitType ( ) : integer
initEntity ( )
setRabbitType ( integer $type )
spawnTo ( Player $player )

Method Details

__construct() public method

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

getDrops() public method

public getDrops ( )

getName() public method

public getName ( ) : string
return string

getRabbitType() public method

public getRabbitType ( ) : integer
return integer

getRandomRabbitType() public method

public getRandomRabbitType ( ) : integer
return integer

initEntity() public method

public initEntity ( )

setRabbitType() public method

public setRabbitType ( integer $type )
$type integer

spawnTo() public method

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

Property Details

$dropExp public_oe property

public $dropExp

$height public_oe property

public $height

$length public_oe property

public $length

$width public_oe property

public $width