Skip to content

LodestoneCompass 5.46.0 ​

class · pocketmine\item\LodestoneCompass · source

Extends Item

Compass linked to a lodestone. The client asks the server where the lodestone is using the tracking handle (see PositionTrackingDB).

Constants ​

TAG_TRACKING_HANDLE ​

php
public const TAG_TRACKING_HANDLE = "trackingHandle"

Methods ​

deserializeCompoundTag() protected ​

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

getTrackingHandle() ​

php
public function getTrackingHandle() : int

Returns the position tracking handle of the linked lodestone, 0 if not linked.

serializeCompoundTag() protected ​

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

setTrackingHandle() ​

php
public function setTrackingHandle(int $trackingHandle) : self

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