cMap


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cMap class

This class encapsulates a single in-game colored map.

The contents (i.e. pixel data) of a cMap are dynamically updated by each tracked cPlayer instance. Furthermore, a cMap maintains and periodically updates a list of map decorators, which are objects drawn on the map that can freely move (e.g. Player and item frame pointers).


Constants

NameValueNotes
E_BASE_COLOR_BLUE 48
E_BASE_COLOR_BROWN 40
E_BASE_COLOR_DARK_BROWN 52
E_BASE_COLOR_DARK_GRAY 44
E_BASE_COLOR_DARK_GREEN 28
E_BASE_COLOR_GRAY_1 12
E_BASE_COLOR_GRAY_2 24
E_BASE_COLOR_LIGHT_BLUE 5
E_BASE_COLOR_LIGHT_BROWN 8
E_BASE_COLOR_LIGHT_GRAY 36
E_BASE_COLOR_LIGHT_GREEN 4
E_BASE_COLOR_PALE_BLUE 20
E_BASE_COLOR_RED 16
E_BASE_COLOR_TRANSPARENT 0
E_BASE_COLOR_WHITE 32

Functions

NameParametersReturn valueNotes
GetCenterX
number
Returns the X coord of the map's center.
GetCenterZ
number
Returns the Y coord of the map's center.
GetDimension
eDimension
Returns the dimension of the associated world.
GetHeight
number
Returns the height of the map.
GetID
number
Returns the numerical ID of the map. (The item damage value)
GetName
string
Returns the name of the map.
GetNumPixels
number
Returns the number of pixels in this map.
GetPixel
PixelXnumber
PixelZnumber
ColorIDnumber
Returns the color of the specified pixel.
GetPixelWidth
number
Returns the width of a single pixel in blocks.
GetScale
number
Returns the scale of the map. Range: [0,4]
GetWidth
number
Returns the width of the map.
GetWorld
cWorld
Returns the associated world.
Resize
Widthnumber
Heightnumber
Resizes the map. WARNING: This will erase the pixel data.
SetPixel
PixelXnumber
PixelZnumber
ColorIDnumber
IsSuccessboolean
Sets the color of the specified pixel. Returns false on error (Out of range).
SetPosition
CenterXnumber
CenterZnumber
Relocates the map. The pixel data will not be modified.
SetScale
Scalenumber
Rescales the map. The pixel data will not be modified.
Generated by APIDump on 2024-11-15 00:45:52, Build ID 68, Commit c0f6c97dcea08feb7d5cd1deefc0f6f76eb2cdbd