Skip to content

FilledMap 5.46.0 ​

class · pocketmine\item\FilledMap · source

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

Types 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 = 12

TYPE_LOCATOR ​

php
public const TYPE_LOCATOR = 2

TYPE_LOCKED ​

php
public const TYPE_LOCKED = 6

TYPE_MAP ​

php
public const TYPE_MAP = 0

TYPE_OCEAN_EXPLORER ​

php
public const TYPE_OCEAN_EXPLORER = 3

TYPE_SWAMP_EXPLORER ​

php
public const TYPE_SWAMP_EXPLORER = 13

TYPE_TREASURE ​

php
public const TYPE_TREASURE = 5

TYPE_TRIAL_EXPLORER ​

php
public const TYPE_TRIAL_EXPLORER = 14

TYPE_VILLAGE_DESERT ​

php
public const TYPE_VILLAGE_DESERT = 11

TYPE_VILLAGE_PLAINS ​

php
public const TYPE_VILLAGE_PLAINS = 9

TYPE_VILLAGE_SAVANNA ​

php
public const TYPE_VILLAGE_SAVANNA = 10

TYPE_VILLAGE_SNOWY ​

php
public const TYPE_VILLAGE_SNOWY = 7

TYPE_VILLAGE_TAIGA ​

php
public const TYPE_VILLAGE_TAIGA = 8

TYPE_WOODLAND_EXPLORER ​

php
public const TYPE_WOODLAND_EXPLORER = 4

Methods ​

describeState() protected ​

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

deserializeCompoundTag() protected ​

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

displaysPlayers() ​

php
public function displaysPlayers() : bool

Returns whether the map shows player markers (locator maps).

getMapId() ​

php
public function getMapId() : int

Returns the ID of the map data shown by this map, or 0 if it doesn't have one yet.

getMapType() ​

php
public function getMapType() : int

getScale() ​

php
public function getScale() : int

serializeCompoundTag() protected ​

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

setDisplayPlayers() ​

php
public function setDisplayPlayers(bool $displayPlayers) : self

setMapId() ​

php
public function setMapId(int $mapId) : self

setMapType() ​

php
public function setMapType(int $mapType) : self

setScale() ​

php
public function setScale(int $scale) : self

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