PHP 클래스 pocketmine\entity\Entity

상속: extends pocketmine\level\Location, implements pocketmine\metadata\Metadatable
파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$boundingBox pocketmine\math\AxisAlignedBB
$canCollide
$chunk pocketmine\level\format\Chunk
$closed
$deadTicks
$dropExp
$entityCount
$eyeHeight
$fallDistance
$fireTicks
$height
$inBlock
$isCollided
$isCollidedHorizontally
$isCollidedVertically
$keepMovement
$lastMotionX
$lastMotionY
$lastMotionZ
$lastPitch
$lastUpdate
$lastX
$lastY
$lastYaw
$lastZ
$length
$maxFireTicks
$motionChanged
$motionX
$motionY
$motionZ
$namedtag
$noDamageTicks
$onGround
$passenger
$positionChanged
$temporalVector pocketmine\math\Vector3
$ticksLived
$vehicle
$width

보호된 프로퍼티들

프로퍼티 타입 설명
$activatedPressurePlates pocketmine\block\PressurePlate
$age
$attributeMap AttributeMap
$dataFlags
$dataProperties
$drag
$effects Effect[]
$fireProof
$gravity
$hasSpawned pocketmine\Player[]
$id
$isPlayer
$isStatic
$justCreated
$lastDamageCause
$linkedEntity Entity
$linkedType 0 no linked 1 linked other 2 be linked
$riding
$server pocketmine\Server
$stepHeight
$timings pocketmine\event\TimingsHandler
$ySize

공개 메소드들

메소드 설명
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
__destruct ( )
__toString ( )
addEffect ( Effect $effect )
addMovement ( $x, $y, $z, $yaw, $pitch, $headYaw = null )
attack ( float $damage, EntityDamageEvent $source ) : boolean
canCollideWith ( Entity $entity )
canTriggerWalking ( )
close ( )
createEntity ( integer | string $type, pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, $args ) : Entity | Projectile
despawnFrom ( Player $player )
despawnFromAll ( )
entityBaseTick ( $tickDiff = 1 )
extinguish ( )
fall ( $fallDistance )
fastMove ( $dx, $dy, $dz )
getAttributeMap ( )
getBlocksAround ( )
getBoundingBox ( )
getDataFlag ( integer $propertyId, integer $id ) : boolean
getDataProperty ( integer $id ) : mixed
getDataPropertyType ( integer $id ) : integer
getDirection ( )
getDirectionPlane ( )
getDirectionVector ( ) : Vector3
getDropExpMax ( ) : integer
getDropExpMin ( ) : integer
getEffect ( $effectId )
getEffects ( ) : Effect[]
getEyeHeight ( )
getHealth ( ) : integer
getId ( )
getLastDamageCause ( ) : EntityDamageEvent | null
getLinkedEntity ( )
getLinkedType ( )
getLocation ( )
getMaxHealth ( ) : integer
getMetadata ( $metadataKey )
getMotion ( )
getNameTag ( ) : string
getPosition ( )
getSaveId ( ) : string Returns the short save name
getViewers ( ) : Player[]
handleLavaMovement ( )
hasEffect ( $effectId )
hasMetadata ( $metadataKey )
heal ( float $amount, EntityRegainHealthEvent $source )
isAlive ( )
isInsideOfFire ( )
isInsideOfPortal ( )
isInsideOfSolid ( )
isInsideOfWater ( )
isNameTagVisible ( ) : boolean
isOnFire ( )
isOnGround ( )
isSneaking ( )
isSprinting ( )
kill ( )
linkEntity ( Entity $entity )
move ( $dx, $dy, $dz )
moveFlying ( )
onCollideWithPlayer ( Human $entityPlayer )
onUpdate ( $currentTick )
registerEntity ( $className, $force = false )
removeAllEffects ( )
removeEffect ( $effectId )
removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin )
resetFallDistance ( )
respawnToAll ( )
saveNBT ( )
scheduleUpdate ( )
sendData ( Player[] | Player $player, array $data = null )
sendLinkedData ( )
sendPotionEffects ( Player $player )
setDataFlag ( $propertyId, $id, boolean $value = true, integer $type = self::DATA_TYPE_BYTE )
setDataProperty ( integer $id, integer $type, mixed $value ) : boolean
setHealth ( integer $amount ) Sets the health of the Entity. This won't send any update to the players
setLastDamageCause ( EntityDamageEvent $type )
setLinked ( $type, Entity $entity )
setLocation ( Location $pos )
setMaxHealth ( integer $amount )
setMetadata ( $metadataKey, MetadataValue $metadataValue )
setMotion ( Vector3 $motion )
setNameTag ( string $name )
setNameTagVisible ( boolean $value = true )
setOnFire ( $seconds )
setPosition ( Vector3 $pos )
setPositionAndRotation ( Vector3 $pos, $yaw, $pitch )
setRotation ( $yaw, $pitch )
setSneaking ( $value = true )
setSprinting ( $value = true )
spawnTo ( Player $player )
spawnToAll ( )
teleport ( Vector3 $pos, float $yaw = null, float $pitch = null ) : boolean

보호된 메소드들

메소드 설명
addAttributes ( )
checkBlockCollision ( )
checkChunks ( )
checkGroundState ( $movX, $movY, $movZ, $dx, $dy, $dz )
checkObstruction ( $x, $y, $z )
initEntity ( )
recalculateEffectColor ( )
switchLevel ( Level $targetLevel )
updateFallState ( $distanceThisTick, $onGround )
updateMovement ( )

메소드 상세

__construct() 공개 메소드

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

__destruct() 공개 메소드

public __destruct ( )

__toString() 공개 메소드

public __toString ( )

addAttributes() 보호된 메소드

protected addAttributes ( )

addEffect() 공개 메소드

public addEffect ( Effect $effect )
$effect Effect

addMovement() 공개 메소드

public addMovement ( $x, $y, $z, $yaw, $pitch, $headYaw = null )

attack() 공개 메소드

public attack ( float $damage, EntityDamageEvent $source ) : boolean
$damage float
$source pocketmine\event\entity\EntityDamageEvent
리턴 boolean

canCollideWith() 공개 메소드

public canCollideWith ( Entity $entity )
$entity Entity

canTriggerWalking() 공개 메소드

public canTriggerWalking ( )

checkBlockCollision() 보호된 메소드

protected checkBlockCollision ( )

checkChunks() 보호된 메소드

protected checkChunks ( )

checkGroundState() 보호된 메소드

protected checkGroundState ( $movX, $movY, $movZ, $dx, $dy, $dz )

checkObstruction() 보호된 메소드

protected checkObstruction ( $x, $y, $z )

close() 공개 메소드

public close ( )

createEntity() 공개 정적인 메소드

public static createEntity ( integer | string $type, pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt, $args ) : Entity | Projectile
$type integer | string
$chunk pocketmine\level\format\FullChunk
$nbt pocketmine\nbt\tag\CompoundTag
$args
리턴 Entity | Projectile

despawnFrom() 공개 메소드

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

despawnFromAll() 공개 메소드

public despawnFromAll ( )

entityBaseTick() 공개 메소드

public entityBaseTick ( $tickDiff = 1 )

extinguish() 공개 메소드

public extinguish ( )

fall() 공개 메소드

public fall ( $fallDistance )

fastMove() 공개 메소드

public fastMove ( $dx, $dy, $dz )

getAttributeMap() 공개 메소드

public getAttributeMap ( )

getBlocksAround() 공개 메소드

public getBlocksAround ( )

getBoundingBox() 공개 메소드

public getBoundingBox ( )

getDataFlag() 공개 메소드

public getDataFlag ( integer $propertyId, integer $id ) : boolean
$propertyId integer
$id integer
리턴 boolean

getDataProperty() 공개 메소드

public getDataProperty ( integer $id ) : mixed
$id integer
리턴 mixed

getDataPropertyType() 공개 메소드

public getDataPropertyType ( integer $id ) : integer
$id integer
리턴 integer

getDirection() 공개 메소드

public getDirection ( )

getDirectionPlane() 공개 메소드

public getDirectionPlane ( )

getDirectionVector() 공개 메소드

public getDirectionVector ( ) : Vector3
리턴 pocketmine\math\Vector3

getDropExpMax() 공개 메소드

public getDropExpMax ( ) : integer
리턴 integer

getDropExpMin() 공개 메소드

public getDropExpMin ( ) : integer
리턴 integer

getEffect() 공개 메소드

public getEffect ( $effectId )

getEffects() 공개 메소드

public getEffects ( ) : Effect[]
리턴 Effect[]

getEyeHeight() 공개 메소드

public getEyeHeight ( )

getHealth() 공개 메소드

public getHealth ( ) : integer
리턴 integer

getId() 공개 메소드

public getId ( )

getLastDamageCause() 공개 메소드

public getLastDamageCause ( ) : EntityDamageEvent | null
리턴 pocketmine\event\entity\EntityDamageEvent | null

getLinkedEntity() 공개 메소드

public getLinkedEntity ( )

getLinkedType() 공개 메소드

public getLinkedType ( )

getLocation() 공개 메소드

public getLocation ( )

getMaxHealth() 공개 메소드

public getMaxHealth ( ) : integer
리턴 integer

getMetadata() 공개 메소드

public getMetadata ( $metadataKey )

getMotion() 공개 메소드

public getMotion ( )

getNameTag() 공개 메소드

public getNameTag ( ) : string
리턴 string

getPosition() 공개 메소드

public getPosition ( )

getSaveId() 공개 메소드

Returns the short save name
public getSaveId ( ) : string
리턴 string

getViewers() 공개 메소드

public getViewers ( ) : Player[]
리턴 pocketmine\Player[]

handleLavaMovement() 공개 메소드

public handleLavaMovement ( )

hasEffect() 공개 메소드

public hasEffect ( $effectId )

hasMetadata() 공개 메소드

public hasMetadata ( $metadataKey )

heal() 공개 메소드

public heal ( float $amount, EntityRegainHealthEvent $source )
$amount float
$source pocketmine\event\entity\EntityRegainHealthEvent

initEntity() 보호된 메소드

protected initEntity ( )

isAlive() 공개 메소드

public isAlive ( )

isInsideOfFire() 공개 메소드

public isInsideOfFire ( )

isInsideOfPortal() 공개 메소드

public isInsideOfPortal ( )

isInsideOfSolid() 공개 메소드

public isInsideOfSolid ( )

isInsideOfWater() 공개 메소드

public isInsideOfWater ( )

isNameTagVisible() 공개 메소드

public isNameTagVisible ( ) : boolean
리턴 boolean

isOnFire() 공개 메소드

public isOnFire ( )

isOnGround() 공개 메소드

public isOnGround ( )

isSneaking() 공개 메소드

public isSneaking ( )

isSprinting() 공개 메소드

public isSprinting ( )

kill() 공개 메소드

public kill ( )

linkEntity() 공개 메소드

public linkEntity ( Entity $entity )
$entity Entity

move() 공개 메소드

public move ( $dx, $dy, $dz )

moveFlying() 공개 메소드

public moveFlying ( )

onCollideWithPlayer() 공개 메소드

public onCollideWithPlayer ( Human $entityPlayer )
$entityPlayer Human

onUpdate() 공개 메소드

public onUpdate ( $currentTick )

recalculateEffectColor() 보호된 메소드

protected recalculateEffectColor ( )

registerEntity() 공개 정적인 메소드

public static registerEntity ( $className, $force = false )

removeAllEffects() 공개 메소드

public removeAllEffects ( )

removeEffect() 공개 메소드

public removeEffect ( $effectId )

removeMetadata() 공개 메소드

public removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin )
$plugin pocketmine\plugin\Plugin

resetFallDistance() 공개 메소드

public resetFallDistance ( )

respawnToAll() 공개 메소드

public respawnToAll ( )

saveNBT() 공개 메소드

public saveNBT ( )

scheduleUpdate() 최종 공개 메소드

final public scheduleUpdate ( )

sendData() 공개 메소드

public sendData ( Player[] | Player $player, array $data = null )
$player pocketmine\Player[] | pocketmine\Player
$data array Properly formatted entity data, defaults to everything

sendLinkedData() 공개 메소드

public sendLinkedData ( )

sendPotionEffects() 공개 메소드

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

setDataFlag() 공개 메소드

public setDataFlag ( $propertyId, $id, boolean $value = true, integer $type = self::DATA_TYPE_BYTE )
$propertyId
$id
$value boolean
$type integer

setDataProperty() 공개 메소드

public setDataProperty ( integer $id, integer $type, mixed $value ) : boolean
$id integer
$type integer
$value mixed
리턴 boolean

setHealth() 공개 메소드

Sets the health of the Entity. This won't send any update to the players
public setHealth ( integer $amount )
$amount integer

setLastDamageCause() 공개 메소드

public setLastDamageCause ( EntityDamageEvent $type )
$type pocketmine\event\entity\EntityDamageEvent

setLinked() 공개 메소드

public setLinked ( $type, Entity $entity )
$entity Entity

setLocation() 공개 메소드

public setLocation ( Location $pos )
$pos pocketmine\level\Location

setMaxHealth() 공개 메소드

public setMaxHealth ( integer $amount )
$amount integer

setMetadata() 공개 메소드

public setMetadata ( $metadataKey, MetadataValue $metadataValue )
$metadataValue pocketmine\metadata\MetadataValue

setMotion() 공개 메소드

public setMotion ( Vector3 $motion )
$motion pocketmine\math\Vector3

setNameTag() 공개 메소드

public setNameTag ( string $name )
$name string

setNameTagVisible() 공개 메소드

public setNameTagVisible ( boolean $value = true )
$value boolean

setOnFire() 공개 메소드

public setOnFire ( $seconds )

setPosition() 공개 메소드

public setPosition ( Vector3 $pos )
$pos pocketmine\math\Vector3

setPositionAndRotation() 공개 메소드

public setPositionAndRotation ( Vector3 $pos, $yaw, $pitch )
$pos pocketmine\math\Vector3

setRotation() 공개 메소드

public setRotation ( $yaw, $pitch )

setSneaking() 공개 메소드

public setSneaking ( $value = true )

setSprinting() 공개 메소드

public setSprinting ( $value = true )

spawnTo() 공개 메소드

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

spawnToAll() 공개 메소드

public spawnToAll ( )

switchLevel() 보호된 메소드

protected switchLevel ( Level $targetLevel )
$targetLevel pocketmine\level\Level

teleport() 공개 메소드

public teleport ( Vector3 $pos, float $yaw = null, float $pitch = null ) : boolean
$pos pocketmine\math\Vector3
$yaw float
$pitch float
리턴 boolean

updateFallState() 보호된 메소드

protected updateFallState ( $distanceThisTick, $onGround )

updateMovement() 보호된 메소드

protected updateMovement ( )

프로퍼티 상세

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

protected PressurePlate,pocketmine\block $activatedPressurePlates
리턴 pocketmine\block\PressurePlate

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

protected $age

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

protected AttributeMap,pocketmine\entity $attributeMap
리턴 AttributeMap

$boundingBox 공개적으로 프로퍼티

public AxisAlignedBB,pocketmine\math $boundingBox
리턴 pocketmine\math\AxisAlignedBB

$canCollide 공개적으로 프로퍼티

public $canCollide

$chunk 공개적으로 프로퍼티

public Chunk,pocketmine\level\format $chunk
리턴 pocketmine\level\format\Chunk

$closed 공개적으로 프로퍼티

public $closed

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

protected $dataFlags

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

protected $dataProperties

$deadTicks 공개적으로 프로퍼티

public $deadTicks

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

protected $drag

$dropExp 공개적으로 프로퍼티

public $dropExp

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

protected Effect[],pocketmine\entity $effects
리턴 Effect[]

$entityCount 공개적으로 정적으로 프로퍼티

public static $entityCount

$eyeHeight 공개적으로 프로퍼티

public $eyeHeight

$fallDistance 공개적으로 프로퍼티

public $fallDistance

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

protected $fireProof

$fireTicks 공개적으로 프로퍼티

public $fireTicks

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

protected $gravity

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

protected Player[],pocketmine $hasSpawned
리턴 pocketmine\Player[]

$height 공개적으로 프로퍼티

public $height

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

protected $id

$inBlock 공개적으로 프로퍼티

public $inBlock

$isCollided 공개적으로 프로퍼티

public $isCollided

$isCollidedHorizontally 공개적으로 프로퍼티

public $isCollidedHorizontally

$isCollidedVertically 공개적으로 프로퍼티

public $isCollidedVertically

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

protected $isPlayer

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

protected $isStatic

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

protected $justCreated

$keepMovement 공개적으로 프로퍼티

public $keepMovement

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

protected $lastDamageCause

$lastMotionX 공개적으로 프로퍼티

public $lastMotionX

$lastMotionY 공개적으로 프로퍼티

public $lastMotionY

$lastMotionZ 공개적으로 프로퍼티

public $lastMotionZ

$lastPitch 공개적으로 프로퍼티

public $lastPitch

$lastUpdate 공개적으로 프로퍼티

public $lastUpdate

$lastX 공개적으로 프로퍼티

public $lastX

$lastY 공개적으로 프로퍼티

public $lastY

$lastYaw 공개적으로 프로퍼티

public $lastYaw

$lastZ 공개적으로 프로퍼티

public $lastZ

$length 공개적으로 프로퍼티

public $length

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

protected Entity,pocketmine\entity $linkedEntity
리턴 Entity

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

0 no linked 1 linked other 2 be linked
protected $linkedType

$maxFireTicks 공개적으로 프로퍼티

public $maxFireTicks

$motionChanged 공개적으로 프로퍼티

public $motionChanged

$motionX 공개적으로 프로퍼티

public $motionX

$motionY 공개적으로 프로퍼티

public $motionY

$motionZ 공개적으로 프로퍼티

public $motionZ

$namedtag 공개적으로 프로퍼티

public $namedtag

$noDamageTicks 공개적으로 프로퍼티

public $noDamageTicks

$onGround 공개적으로 프로퍼티

public $onGround

$passenger 공개적으로 프로퍼티

public $passenger

$positionChanged 공개적으로 프로퍼티

public $positionChanged

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

protected $riding

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

protected Server,pocketmine $server
리턴 pocketmine\Server

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

protected $stepHeight

$temporalVector 공개적으로 프로퍼티

public Vector3,pocketmine\math $temporalVector
리턴 pocketmine\math\Vector3

$ticksLived 공개적으로 프로퍼티

public $ticksLived

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

protected TimingsHandler,pocketmine\event $timings
리턴 pocketmine\event\TimingsHandler

$vehicle 공개적으로 프로퍼티

public $vehicle

$width 공개적으로 프로퍼티

public $width

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

protected $ySize