Skip to content

AreaEffectCloud ​

class · pocketmine\entity\object\AreaEffectCloud · source

Extends Entity

Constants ​

DEFAULT_DURATION ​

php
public const DEFAULT_DURATION = 600

DEFAULT_DURATION_CHANGE_ON_USE ​

php
public const DEFAULT_DURATION_CHANGE_ON_USE = 0

DEFAULT_RADIUS ​

php
public const DEFAULT_RADIUS = 3.0

DEFAULT_RADIUS_CHANGE_ON_PICKUP ​

php
public const DEFAULT_RADIUS_CHANGE_ON_PICKUP = -0.5

DEFAULT_RADIUS_CHANGE_ON_USE ​

php
public const DEFAULT_RADIUS_CHANGE_ON_USE = -0.5

DEFAULT_RADIUS_CHANGE_PER_TICK ​

php
public const DEFAULT_RADIUS_CHANGE_PER_TICK = -(self::DEFAULT_RADIUS / self::DEFAULT_DURATION)

REAPPLICATION_DELAY ​

php
public const REAPPLICATION_DELAY = 40

TAG_DURATION protected ​

php
protected const TAG_DURATION = "Duration"

TAG_DURATION_ON_USE protected ​

php
protected const TAG_DURATION_ON_USE = "DurationOnUse"

TAG_EFFECTS protected ​

php
protected const TAG_EFFECTS = "mobEffects"

TAG_INITIAL_RADIUS protected ​

php
protected const TAG_INITIAL_RADIUS = "InitialRadius"

TAG_PICKUP_COUNT protected ​

php
protected const TAG_PICKUP_COUNT = "PickupCount"

TAG_POTION_ID protected ​

php
protected const TAG_POTION_ID = "PotionId"

TAG_RADIUS protected ​

php
protected const TAG_RADIUS = "Radius"

TAG_RADIUS_CHANGE_ON_PICKUP protected ​

php
protected const TAG_RADIUS_CHANGE_ON_PICKUP = "RadiusChangeOnPickup"

TAG_RADIUS_ON_USE protected ​

php
protected const TAG_RADIUS_ON_USE = "RadiusOnUse"

TAG_RADIUS_PER_TICK protected ​

php
protected const TAG_RADIUS_PER_TICK = "RadiusPerTick"

TAG_REAPPLICATION_DELAY protected ​

php
protected const TAG_REAPPLICATION_DELAY = "ReapplicationDelay"

TAG_SPAWN_TICK protected ​

php
protected const TAG_SPAWN_TICK = "SpawnTick"

UPDATE_DELAY ​

php
public const UPDATE_DELAY = 10

Properties ​

$age protected ​

php
protected int $age

$effectCollection protected ​

php
protected \pocketmine\entity\effect\EffectCollection $effectCollection

$initialRadius protected ​

php
protected float $initialRadius

$maxAge protected ​

php
protected int $maxAge

$maxAgeChangeOnUse protected ​

php
protected int $maxAgeChangeOnUse

$pickupCount protected ​

php
protected int $pickupCount

$radius protected ​

php
protected float $radius

$radiusChangeOnPickup protected ​

php
protected float $radiusChangeOnPickup

$radiusChangeOnUse protected ​

php
protected float $radiusChangeOnUse

$radiusChangePerTick protected ​

php
protected float $radiusChangePerTick

$reapplicationDelay protected ​

php
protected int $reapplicationDelay

$victims protected ​

php
protected array $victims

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)

canBeCollidedWith() ​

php
public function canBeCollidedWith() : bool

destroyCycles() protected ​

php
protected function destroyCycles() : void

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getAge() ​

php
public function getAge() : int

Returns the current age of the cloud (in ticks).

getEffects() ​

php
public function getEffects() : \pocketmine\entity\effect\EffectCollection

getInitialDragMultiplier() protected ​

php
protected function getInitialDragMultiplier() : float

getInitialGravity() protected ​

php
protected function getInitialGravity() : float

getInitialRadius() ​

php
public function getInitialRadius() : float

Returns the initial radius (in blocks).

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getMaxAge() ​

php
public function getMaxAge() : int

Returns the age at which the cloud will despawn.

getMaxAgeChangeOnUse() ​

php
public function getMaxAgeChangeOnUse() : int

Returns the amount that the max age of this cloud will change by when it applies an effect to an entity (in ticks).

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getRadius() ​

php
public function getRadius() : float

Returns the current radius (in blocks).

getRadiusChangeOnPickup() ​

php
public function getRadiusChangeOnPickup() : float

Returns the amount that the radius of this cloud will add by when it is picked up (in blocks). Usually negative resulting in a radius reduction.

Applied when getting dragon breath bottle.

getRadiusChangeOnUse() ​

php
public function getRadiusChangeOnUse() : float

Returns the amount that the radius of this cloud will add by when it applies an effect to an entity (in blocks). Usually negative resulting in a radius reduction.

getRadiusChangePerTick() ​

php
public function getRadiusChangePerTick() : float

Returns the amount that the radius of this cloud will add by when an update is performed (in blocks). Usually negative resulting in a radius reduction.

getReapplicationDelay() ​

php
public function getReapplicationDelay() : int

Returns the time that an entity will be immune from subsequent exposure (in ticks).

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isFireProof() ​

php
public function isFireProof() : bool

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setMaxAge() ​

php
public function setMaxAge(int $maxAge) : void

Sets the age at which the cloud will despawn.

setMaxAgeChangeOnUse() ​

php
public function setMaxAgeChangeOnUse(int $maxAgeChangeOnUse) : void

Sets the amount that the max age of this cloud will change by when it applies an effect to an entity (in ticks).

setRadius() protected ​

php
protected function setRadius(float $radius) : void

Sets the current radius (in blocks).

setRadiusChangeOnPickup() ​

php
public function setRadiusChangeOnPickup(float $radiusChangeOnPickup) : void

Sets the amount that the radius of this cloud will add by when it is picked up (in blocks). Usually negative resulting in a radius reduction.

Applied when getting dragon breath bottle.

setRadiusChangeOnUse() ​

php
public function setRadiusChangeOnUse(float $radiusChangeOnUse) : void

Sets the amount that the radius of this cloud will add by when it applies an effect to an entity (in blocks).

setRadiusChangePerTick() ​

php
public function setRadiusChangePerTick(float $radiusChangePerTick) : void

Sets the amount that the radius of this cloud will add by when an update is performed (in blocks).

setReapplicationDelay() ​

php
public function setReapplicationDelay(int $delay) : void

Sets the time that an entity will be immune from subsequent exposure (in ticks).

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.