Beacon
Extends Spawnable
Implements Nameable
Block entity of beacons ("Beacon").
Saved and sent to the client: "primary" and "secondary" (TAG_Int, Bedrock effect IDs, 0 = none), the same keys as GeyserMC BeaconInventoryTranslator and PowerNukkitX. The Bedrock client works the pyramid level out by itself from the blocks it sees, so the level is not saved; it is recomputed every 80 ticks.
Methods
addAdditionalSpawnData() protected
php
protected function addAdditionalSpawnData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidgetDefaultName() 5.46.0
php
public function getDefaultName() : stringgetLastUpdateTick() 5.46.0
php
public function getLastUpdateTick() : intgetPrimaryEffect()
php
public function getPrimaryEffect() : intgetPyramidLevel() 5.46.0
php
public function getPyramidLevel() : intgetSecondaryEffect()
php
public function getSecondaryEffect() : intisActive() 5.46.0
php
public function isActive() : boolisLoadedFromSave() 5.46.0
php
public function isLoadedFromSave() : boolreadSaveData()
php
public function readSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : voidsetActive() 5.46.0
php
public function setActive(bool $active) : voidsetLastUpdateTick() 5.46.0
php
public function setLastUpdateTick(int $lastUpdateTick) : voidsetLoadedFromSave() 5.46.0
php
public function setLoadedFromSave(bool $loadedFromSave) : voidsetPrimaryEffect()
php
public function setPrimaryEffect(int $primaryEffect) : voidsetPyramidLevel() 5.46.0
php
public function setPyramidLevel(int $pyramidLevel) : voidsetSecondaryEffect()
php
public function setSecondaryEffect(int $secondaryEffect) : voidwriteSaveData() protected
php
protected function writeSaveData(\pocketmine\nbt\tag\CompoundTag $nbt) : void