Property | Type | Description | |
---|---|---|---|
$boundingBox | |||
$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 | |||
$ticksLived | |||
$vehicle | |||
$width |
Property | Type | Description | |
---|---|---|---|
$activatedPressurePlates | |||
$age | |||
$attributeMap | |||
$dataFlags | |||
$dataProperties | |||
$drag | |||
$effects | |||
$fireProof | |||
$gravity | |||
$hasSpawned | |||
$id | |||
$isPlayer | |||
$isStatic | |||
$justCreated | |||
$lastDamageCause | |||
$linkedEntity | |||
$linkedType | 0 no linked 1 linked other 2 be linked | ||
$riding | |||
$server | |||
$stepHeight | |||
$timings | |||
$ySize |
Method | Description | |
---|---|---|
__construct ( pocketmine\level\format\FullChunk $chunk, |
||
__destruct ( ) | ||
__toString ( ) | ||
addEffect ( |
||
addMovement ( $x, $y, $z, $yaw, $pitch, $headYaw = null ) | ||
attack ( float $damage, |
||
canCollideWith ( |
||
canTriggerWalking ( ) | ||
close ( ) | ||
createEntity ( integer | string $type, pocketmine\level\format\FullChunk $chunk, |
||
despawnFrom ( |
||
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 ( ) : |
||
getDropExpMax ( ) : integer | ||
getDropExpMin ( ) : integer | ||
getEffect ( $effectId ) | ||
getEffects ( ) : |
||
getEyeHeight ( ) | ||
getHealth ( ) : integer | ||
getId ( ) | ||
getLastDamageCause ( ) : |
||
getLinkedEntity ( ) | ||
getLinkedType ( ) | ||
getLocation ( ) | ||
getMaxHealth ( ) : integer | ||
getMetadata ( $metadataKey ) | ||
getMotion ( ) | ||
getNameTag ( ) : string | ||
getPosition ( ) | ||
getSaveId ( ) : string | Returns the short save name | |
getViewers ( ) : |
||
handleLavaMovement ( ) | ||
hasEffect ( $effectId ) | ||
hasMetadata ( $metadataKey ) | ||
heal ( float $amount, |
||
isAlive ( ) | ||
isInsideOfFire ( ) | ||
isInsideOfPortal ( ) | ||
isInsideOfSolid ( ) | ||
isInsideOfWater ( ) | ||
isNameTagVisible ( ) : boolean | ||
isOnFire ( ) | ||
isOnGround ( ) | ||
isSneaking ( ) | ||
isSprinting ( ) | ||
kill ( ) | ||
linkEntity ( |
||
move ( $dx, $dy, $dz ) | ||
moveFlying ( ) | ||
onCollideWithPlayer ( |
||
onUpdate ( $currentTick ) | ||
registerEntity ( $className, $force = false ) | ||
removeAllEffects ( ) | ||
removeEffect ( $effectId ) | ||
removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin ) | ||
resetFallDistance ( ) | ||
respawnToAll ( ) | ||
saveNBT ( ) | ||
scheduleUpdate ( ) | ||
sendData ( |
||
sendLinkedData ( ) | ||
sendPotionEffects ( |
||
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 ( |
||
setLinked ( $type, |
||
setLocation ( |
||
setMaxHealth ( integer $amount ) | ||
setMetadata ( $metadataKey, |
||
setMotion ( |
||
setNameTag ( string $name ) | ||
setNameTagVisible ( boolean $value = true ) | ||
setOnFire ( $seconds ) | ||
setPosition ( |
||
setPositionAndRotation ( |
||
setRotation ( $yaw, $pitch ) | ||
setSneaking ( $value = true ) | ||
setSprinting ( $value = true ) | ||
spawnTo ( |
||
spawnToAll ( ) | ||
teleport ( |
Method | Description | |
---|---|---|
addAttributes ( ) | ||
checkBlockCollision ( ) | ||
checkChunks ( ) | ||
checkGroundState ( $movX, $movY, $movZ, $dx, $dy, $dz ) | ||
checkObstruction ( $x, $y, $z ) | ||
initEntity ( ) | ||
recalculateEffectColor ( ) | ||
switchLevel ( |
||
updateFallState ( $distanceThisTick, $onGround ) | ||
updateMovement ( ) |
public __construct ( pocketmine\level\format\FullChunk $chunk, |
||
$chunk | pocketmine\level\format\FullChunk | |
$nbt |
protected checkGroundState ( $movX, $movY, $movZ, $dx, $dy, $dz ) |
public static createEntity ( integer | string $type, pocketmine\level\format\FullChunk $chunk, |
||
$type | integer | string | |
$chunk | pocketmine\level\format\FullChunk | |
$nbt | ||
$args | ||
return |
public getDataProperty ( integer $id ) : mixed | ||
$id | integer | |
return | mixed |
public getDataPropertyType ( integer $id ) : integer | ||
$id | integer | |
return | integer |
public getDirectionVector ( ) : |
||
return |
public getLastDamageCause ( ) : |
||
return |
public onCollideWithPlayer ( |
||
$entityPlayer |
public removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin ) | ||
$plugin | pocketmine\plugin\Plugin |
public sendPotionEffects ( |
||
$player |
public setDataFlag ( $propertyId, $id, boolean $value = true, integer $type = self::DATA_TYPE_BYTE ) | ||
$propertyId | ||
$id | ||
$value | boolean | |
$type | integer |
public setLastDamageCause ( |
||
$type |
public setMetadata ( $metadataKey, |
||
$metadataValue |
public setPositionAndRotation ( |
||
$pos |
protected switchLevel ( |
||
$targetLevel |
protected PressurePlate,pocketmine\block $activatedPressurePlates | ||
return |
protected AttributeMap,pocketmine\entity $attributeMap | ||
return |
public AxisAlignedBB,pocketmine\math $boundingBox | ||
return |
public Chunk,pocketmine\level\format $chunk | ||
return | pocketmine\level\format\Chunk |
public Vector3,pocketmine\math $temporalVector | ||
return |
protected TimingsHandler,pocketmine\event $timings | ||
return |