cMap


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
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
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
sqlite3
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 PixelX, PixelZ ColorID 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 Width, Height Resizes the map. WARNING: This will erase the pixel data.
SetPixel PixelX, PixelZ, ColorID bool Sets the color of the specified pixel. Returns false on error (Out of range).
SetPosition CenterX, CenterZ Relocates the map. The pixel data will not be modified.
SetScale number Rescales the map. The pixel data will not be modified.
Generated on 2016-08-22 23:53:06, Build ID Unknown, Commit approx: 2ed4af74edd14ae17e1c6c64d44caa7b7fc30d5a