EmptyMap 5.46.0
Extends Item
Using an empty map creates a new map of the area around the player. An empty locator map (made with a compass) creates a map that shows the player markers.
Constants
META_EMPTY
php
public const META_EMPTY = 0Item meta of the plain empty map
META_EMPTY_LEGACY
php
public const META_EMPTY_LEGACY = 1Item meta that BedrockData recipes use as an input next to a compass; it behaves like the plain empty map.
META_LOCATOR
php
public const META_LOCATOR = 2Item meta of the empty locator map
Methods
describeState() protected
php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetMapMeta()
php
public function getMapMeta() : intisLocator()
php
public function isLocator() : boolonClickAir()
php
public function onClickAir(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $directionVector, array &$returnedItems) : \pocketmine\item\ItemUseResultsetLocator()
php
public function setLocator(bool $locator) : selfsetMapMeta()
php
public function setMapMeta(int $meta) : self