LodestoneCompass 5.46.0
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) : voidgetTrackingHandle()
php
public function getTrackingHandle() : intReturns the position tracking handle of the linked lodestone, 0 if not linked.
serializeCompoundTag() protected
php
protected function serializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidsetTrackingHandle()
php
public function setTrackingHandle(int $trackingHandle) : self