FilledMap 5.46.0
Extends Item
A map of an area of the world. The item only refers to the map data by its ID ("map_uuid"); the data is kept by MapManager and sent to clients when they ask for it.
The item meta is the kind of map: plain, locator, locked or one of the explorer/treasure maps (Minecraft Wiki, Map#Data values, Bedrock Edition).
Constants
MAX_TYPE
php
public const MAX_TYPE = 26Types 15 to 26 are the trail ruins camp and structure maps added in 1.21
TAG_MAP_DISPLAY_PLAYERS
php
public const TAG_MAP_DISPLAY_PLAYERS = "map_display_players"TAG_MAP_IS_INIT
php
public const TAG_MAP_IS_INIT = "map_is_init"TAG_MAP_SCALE
php
public const TAG_MAP_SCALE = "map_scale"TAG_MAP_UUID
php
public const TAG_MAP_UUID = "map_uuid"TYPE_JUNGLE_EXPLORER
php
public const TYPE_JUNGLE_EXPLORER = 12TYPE_LOCATOR
php
public const TYPE_LOCATOR = 2TYPE_LOCKED
php
public const TYPE_LOCKED = 6TYPE_MAP
php
public const TYPE_MAP = 0TYPE_OCEAN_EXPLORER
php
public const TYPE_OCEAN_EXPLORER = 3TYPE_SWAMP_EXPLORER
php
public const TYPE_SWAMP_EXPLORER = 13TYPE_TREASURE
php
public const TYPE_TREASURE = 5TYPE_TRIAL_EXPLORER
php
public const TYPE_TRIAL_EXPLORER = 14TYPE_VILLAGE_DESERT
php
public const TYPE_VILLAGE_DESERT = 11TYPE_VILLAGE_PLAINS
php
public const TYPE_VILLAGE_PLAINS = 9TYPE_VILLAGE_SAVANNA
php
public const TYPE_VILLAGE_SAVANNA = 10TYPE_VILLAGE_SNOWY
php
public const TYPE_VILLAGE_SNOWY = 7TYPE_VILLAGE_TAIGA
php
public const TYPE_VILLAGE_TAIGA = 8TYPE_WOODLAND_EXPLORER
php
public const TYPE_WOODLAND_EXPLORER = 4Methods
describeState() protected
php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voiddeserializeCompoundTag() protected
php
protected function deserializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voiddisplaysPlayers()
php
public function displaysPlayers() : boolReturns whether the map shows player markers (locator maps).
getMapId()
php
public function getMapId() : intReturns the ID of the map data shown by this map, or 0 if it doesn't have one yet.
getMapType()
php
public function getMapType() : intgetScale()
php
public function getScale() : intserializeCompoundTag() protected
php
protected function serializeCompoundTag(\pocketmine\nbt\tag\CompoundTag $tag) : voidsetDisplayPlayers()
php
public function setDisplayPlayers(bool $displayPlayers) : selfsetMapId()
php
public function setMapId(int $mapId) : selfsetMapType()
php
public function setMapType(int $mapType) : selfsetScale()
php
public function setScale(int $scale) : self