Skip to content

EmptyMap 5.46.0 ​

class · pocketmine\item\EmptyMap · source

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 = 0

Item meta of the plain empty map

META_EMPTY_LEGACY ​

php
public const META_EMPTY_LEGACY = 1

Item 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 = 2

Item meta of the empty locator map

Methods ​

describeState() protected ​

php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getMapMeta() ​

php
public function getMapMeta() : int

isLocator() ​

php
public function isLocator() : bool

onClickAir() ​

php
public function onClickAir(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $directionVector, array &$returnedItems) : \pocketmine\item\ItemUseResult

setLocator() ​

php
public function setLocator(bool $locator) : self

setMapMeta() ​

php
public function setMapMeta(int $meta) : self

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