AreaEffectCloud
Extends Entity
Constants
DEFAULT_DURATION
public const DEFAULT_DURATION = 600DEFAULT_DURATION_CHANGE_ON_USE
public const DEFAULT_DURATION_CHANGE_ON_USE = 0DEFAULT_RADIUS
public const DEFAULT_RADIUS = 3.0DEFAULT_RADIUS_CHANGE_ON_PICKUP
public const DEFAULT_RADIUS_CHANGE_ON_PICKUP = -0.5DEFAULT_RADIUS_CHANGE_ON_USE
public const DEFAULT_RADIUS_CHANGE_ON_USE = -0.5DEFAULT_RADIUS_CHANGE_PER_TICK
public const DEFAULT_RADIUS_CHANGE_PER_TICK = -(self::DEFAULT_RADIUS / self::DEFAULT_DURATION)REAPPLICATION_DELAY
public const REAPPLICATION_DELAY = 40TAG_DURATION protected
protected const TAG_DURATION = "Duration"TAG_DURATION_ON_USE protected
protected const TAG_DURATION_ON_USE = "DurationOnUse"TAG_EFFECTS protected
protected const TAG_EFFECTS = "mobEffects"TAG_INITIAL_RADIUS protected
protected const TAG_INITIAL_RADIUS = "InitialRadius"TAG_PICKUP_COUNT protected
protected const TAG_PICKUP_COUNT = "PickupCount"TAG_POTION_ID protected
protected const TAG_POTION_ID = "PotionId"TAG_RADIUS protected
protected const TAG_RADIUS = "Radius"TAG_RADIUS_CHANGE_ON_PICKUP protected
protected const TAG_RADIUS_CHANGE_ON_PICKUP = "RadiusChangeOnPickup"TAG_RADIUS_ON_USE protected
protected const TAG_RADIUS_ON_USE = "RadiusOnUse"TAG_RADIUS_PER_TICK protected
protected const TAG_RADIUS_PER_TICK = "RadiusPerTick"TAG_REAPPLICATION_DELAY protected
protected const TAG_REAPPLICATION_DELAY = "ReapplicationDelay"TAG_SPAWN_TICK protected
protected const TAG_SPAWN_TICK = "SpawnTick"UPDATE_DELAY
public const UPDATE_DELAY = 10Properties
$age protected
protected int $age$effectCollection protected
protected \pocketmine\entity\effect\EffectCollection $effectCollection$initialRadius protected
protected float $initialRadius$maxAge protected
protected int $maxAge$maxAgeChangeOnUse protected
protected int $maxAgeChangeOnUse$pickupCount protected
protected int $pickupCount$radius protected
protected float $radius$radiusChangeOnPickup protected
protected float $radiusChangeOnPickup$radiusChangeOnUse protected
protected float $radiusChangeOnUse$radiusChangePerTick protected
protected float $radiusChangePerTick$reapplicationDelay protected
protected int $reapplicationDelay$victims protected
protected array $victimsMethods
__construct()
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\nbt\tag\CompoundTag $nbt = null)canBeCollidedWith()
public function canBeCollidedWith() : booldestroyCycles() protected
protected function destroyCycles() : voidentityBaseTick() protected
protected function entityBaseTick(int $tickDiff = 1) : boolgetAge()
public function getAge() : intReturns the current age of the cloud (in ticks).
getEffects()
public function getEffects() : \pocketmine\entity\effect\EffectCollectiongetInitialDragMultiplier() protected
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
protected function getInitialGravity() : floatgetInitialRadius()
public function getInitialRadius() : floatReturns the initial radius (in blocks).
getInitialSizeInfo() protected
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetMaxAge()
public function getMaxAge() : intReturns the age at which the cloud will despawn.
getMaxAgeChangeOnUse()
public function getMaxAgeChangeOnUse() : intReturns the amount that the max age of this cloud will change by when it applies an effect to an entity (in ticks).
getNetworkTypeId()
public static function getNetworkTypeId() : stringgetRadius()
public function getRadius() : floatReturns the current radius (in blocks).
getRadiusChangeOnPickup()
public function getRadiusChangeOnPickup() : floatReturns 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()
public function getRadiusChangeOnUse() : floatReturns 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()
public function getRadiusChangePerTick() : floatReturns 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()
public function getReapplicationDelay() : intReturns the time that an entity will be immune from subsequent exposure (in ticks).
initEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisFireProof()
public function isFireProof() : boolsaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetMaxAge()
public function setMaxAge(int $maxAge) : voidSets the age at which the cloud will despawn.
setMaxAgeChangeOnUse()
public function setMaxAgeChangeOnUse(int $maxAgeChangeOnUse) : voidSets the amount that the max age of this cloud will change by when it applies an effect to an entity (in ticks).
setRadius() protected
protected function setRadius(float $radius) : voidSets the current radius (in blocks).
setRadiusChangeOnPickup()
public function setRadiusChangeOnPickup(float $radiusChangeOnPickup) : voidSets 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()
public function setRadiusChangeOnUse(float $radiusChangeOnUse) : voidSets the amount that the radius of this cloud will add by when it applies an effect to an entity (in blocks).
setRadiusChangePerTick()
public function setRadiusChangePerTick(float $radiusChangePerTick) : voidSets the amount that the radius of this cloud will add by when an update is performed (in blocks).
setReapplicationDelay()
public function setReapplicationDelay(int $delay) : voidSets the time that an entity will be immune from subsequent exposure (in ticks).
syncNetworkData() protected
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void