PHP 클래스 pocketmine\entity\Human

상속: extends Creature, implements ProjectileSource, implements pocketmine\inventory\InventoryHolder
파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$eyeHeight
$height
$length
$width

보호된 프로퍼티들

프로퍼티 타입 설명
$floatingInventory pocketmine\inventory\FloatingInventory
$foodTickTimer
$inventory pocketmine\inventory\PlayerInventory
$rawUUID
$skin
$skinId
$totalXp
$transactionQueue pocketmine\inventory\SimpleTransactionQueue
$uuid pocketmine\utils\UUID
$xpCooldown
$xpSeed

공개 메소드들

메소드 설명
addFood ( float $amount )
addSaturation ( float $amount )
addXp ( integer $xp, boolean $syncLevel = false ) : boolean
addXpLevel ( integer $level ) : boolean
canPickupXp ( ) : boolean
close ( )
despawnFrom ( Player $player )
entityBaseTick ( $tickDiff = 1, $EnchantL )
exhaust ( float $amount, integer $cause = PlayerExhaustEvent::CAUSE_CUSTOM ) : float Increases a human's exhaustion level.
getAbsorption ( ) : integer
getDrops ( )
getExhaustion ( ) : float
getFilledXp ( ) : integer
getFloatingInventory ( )
getFood ( ) : float
getInventory ( )
getLevelFromXp ( integer $xp ) : array Converts a quantity of exp into a level and a progress percentage
getLevelXpRequirement ( integer $level ) : integer Returns the amount of exp required to complete the specified level.
getMaxFood ( ) : float
getName ( )
getRawUniqueId ( ) : string
getRemainderXp ( ) : integer
getSaturation ( ) : float
getSkinData ( )
getSkinId ( )
getTotalXp ( ) : integer
getTotalXpRequirement ( integer $level ) : integer Returns the total amount of exp required to reach the specified level.
getTransactionQueue ( )
getUniqueId ( ) : UUID | null
getXpLevel ( ) : integer
getXpProgress ( ) : float
getXpSeed ( ) : integer
recalculateXpProgress ( ) : float
resetXpCooldown ( )
saveNBT ( )
setAbsorption ( integer $absorption )
setExhaustion ( float $exhaustion ) WARNING: This method does not check if exhausted and does not consume saturation/food.
setFood ( float $new ) WARNING: This method does not check if full and may throw an exception if out of bounds.
setSaturation ( float $saturation ) WARNING: This method does not check if saturated and may throw an exception if out of bounds.
setSkin ( string $str, string $skinId )
setTotalXp ( integer $xp, boolean $syncLevel = false ) : boolean Changes the total exp of a player
setXpLevel ( integer $level ) : boolean
setXpProgress ( float $progress ) : boolean
spawnTo ( Player $player )
takeXp ( integer $xp, boolean $syncLevel = false ) : boolean
takeXpLevel ( integer $level ) : boolean

보호된 메소드들

메소드 설명
addAttributes ( )
initEntity ( )

메소드 상세

addAttributes() 보호된 메소드

protected addAttributes ( )

addFood() 공개 메소드

public addFood ( float $amount )
$amount float

addSaturation() 공개 메소드

public addSaturation ( float $amount )
$amount float

addXp() 공개 메소드

public addXp ( integer $xp, boolean $syncLevel = false ) : boolean
$xp integer
$syncLevel boolean
리턴 boolean

addXpLevel() 공개 메소드

public addXpLevel ( integer $level ) : boolean
$level integer
리턴 boolean

canPickupXp() 공개 메소드

public canPickupXp ( ) : boolean
리턴 boolean

close() 공개 메소드

public close ( )

despawnFrom() 공개 메소드

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

entityBaseTick() 공개 메소드

public entityBaseTick ( $tickDiff = 1, $EnchantL )

exhaust() 공개 메소드

Increases a human's exhaustion level.
public exhaust ( float $amount, integer $cause = PlayerExhaustEvent::CAUSE_CUSTOM ) : float
$amount float
$cause integer
리턴 float the amount of exhaustion level increased

getAbsorption() 공개 메소드

public getAbsorption ( ) : integer
리턴 integer

getDrops() 공개 메소드

public getDrops ( )

getExhaustion() 공개 메소드

public getExhaustion ( ) : float
리턴 float

getFilledXp() 공개 메소드

public getFilledXp ( ) : integer
리턴 integer

getFloatingInventory() 공개 메소드

getFood() 공개 메소드

public getFood ( ) : float
리턴 float

getInventory() 공개 메소드

public getInventory ( )

getLevelFromXp() 공개 정적인 메소드

Converts a quantity of exp into a level and a progress percentage
public static getLevelFromXp ( integer $xp ) : array
$xp integer
리턴 array

getLevelXpRequirement() 공개 정적인 메소드

Returns the amount of exp required to complete the specified level.
public static getLevelXpRequirement ( integer $level ) : integer
$level integer
리턴 integer

getMaxFood() 공개 메소드

public getMaxFood ( ) : float
리턴 float

getName() 공개 메소드

public getName ( )

getRawUniqueId() 공개 메소드

public getRawUniqueId ( ) : string
리턴 string

getRemainderXp() 공개 메소드

public getRemainderXp ( ) : integer
리턴 integer

getSaturation() 공개 메소드

public getSaturation ( ) : float
리턴 float

getSkinData() 공개 메소드

public getSkinData ( )

getSkinId() 공개 메소드

public getSkinId ( )

getTotalXp() 공개 메소드

public getTotalXp ( ) : integer
리턴 integer

getTotalXpRequirement() 공개 정적인 메소드

Returns the total amount of exp required to reach the specified level.
public static getTotalXpRequirement ( integer $level ) : integer
$level integer
리턴 integer

getTransactionQueue() 공개 메소드

public getTransactionQueue ( )

getUniqueId() 공개 메소드

public getUniqueId ( ) : UUID | null
리턴 pocketmine\utils\UUID | null

getXpLevel() 공개 메소드

public getXpLevel ( ) : integer
리턴 integer

getXpProgress() 공개 메소드

public getXpProgress ( ) : float
리턴 float

getXpSeed() 공개 메소드

public getXpSeed ( ) : integer
리턴 integer

initEntity() 보호된 메소드

protected initEntity ( )

recalculateXpProgress() 공개 메소드

public recalculateXpProgress ( ) : float
리턴 float

resetXpCooldown() 공개 메소드

public resetXpCooldown ( )

saveNBT() 공개 메소드

public saveNBT ( )

setAbsorption() 공개 메소드

public setAbsorption ( integer $absorption )
$absorption integer

setExhaustion() 공개 메소드

Use {@link Human::exhaust()} for this purpose.
public setExhaustion ( float $exhaustion )
$exhaustion float

setFood() 공개 메소드

Use {@link Human::addFood()} for this purpose
public setFood ( float $new )
$new float

setSaturation() 공개 메소드

Use {@link Human::addSaturation()} for this purpose
public setSaturation ( float $saturation )
$saturation float

setSkin() 공개 메소드

public setSkin ( string $str, string $skinId )
$str string
$skinId string

setTotalXp() 공개 메소드

Changes the total exp of a player
public setTotalXp ( integer $xp, boolean $syncLevel = false ) : boolean
$xp integer
$syncLevel boolean This will reset the level to be in sync with the total. Usually you don't want to do this, because it'll mess up use of xp in anvils and enchanting tables.
리턴 boolean

setXpLevel() 공개 메소드

public setXpLevel ( integer $level ) : boolean
$level integer
리턴 boolean

setXpProgress() 공개 메소드

public setXpProgress ( float $progress ) : boolean
$progress float
리턴 boolean

spawnTo() 공개 메소드

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

takeXp() 공개 메소드

public takeXp ( integer $xp, boolean $syncLevel = false ) : boolean
$xp integer
$syncLevel boolean
리턴 boolean

takeXpLevel() 공개 메소드

public takeXpLevel ( integer $level ) : boolean
$level integer
리턴 boolean

프로퍼티 상세

$eyeHeight 공개적으로 프로퍼티

public $eyeHeight

$floatingInventory 보호되어 있는 프로퍼티

protected FloatingInventory,pocketmine\inventory $floatingInventory
리턴 pocketmine\inventory\FloatingInventory

$foodTickTimer 보호되어 있는 프로퍼티

protected $foodTickTimer

$height 공개적으로 프로퍼티

public $height

$inventory 보호되어 있는 프로퍼티

protected PlayerInventory,pocketmine\inventory $inventory
리턴 pocketmine\inventory\PlayerInventory

$length 공개적으로 프로퍼티

public $length

$rawUUID 보호되어 있는 프로퍼티

protected $rawUUID

$skin 보호되어 있는 프로퍼티

protected $skin

$skinId 보호되어 있는 프로퍼티

protected $skinId

$totalXp 보호되어 있는 프로퍼티

protected $totalXp

$transactionQueue 보호되어 있는 프로퍼티

protected SimpleTransactionQueue,pocketmine\inventory $transactionQueue
리턴 pocketmine\inventory\SimpleTransactionQueue

$uuid 보호되어 있는 프로퍼티

protected UUID,pocketmine\utils $uuid
리턴 pocketmine\utils\UUID

$width 공개적으로 프로퍼티

public $width

$xpCooldown 보호되어 있는 프로퍼티

protected $xpCooldown

$xpSeed 보호되어 있는 프로퍼티

protected $xpSeed