YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.storage.MapData Class Reference
Inheritance diagram for net.minecraft.world.storage.MapData:
net.minecraft.world.WorldSavedData

Public Member Functions

 MapData (String par1Str)
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void updateVisiblePlayers (EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
 
byte[] getUpdatePacketData (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
void setColumnDirty (int par1, int par2, int par3)
 
void updateMPMapData (byte[] par1ArrayOfByte)
 
MapInfo func_82568_a (EntityPlayer par1EntityPlayer)
 
- Public Member Functions inherited from net.minecraft.world.WorldSavedData
 WorldSavedData (String par1Str)
 
void markDirty ()
 
void setDirty (boolean par1)
 
boolean isDirty ()
 

Public Attributes

int xCenter
 
int zCenter
 
int dimension
 
byte scale
 
byte[] colors = new byte[16384]
 
List playersArrayList = new ArrayList()
 
Map playersVisibleOnMap = new LinkedHashMap()
 
- Public Attributes inherited from net.minecraft.world.WorldSavedData
final String mapName
 

Constructor & Destructor Documentation

net.minecraft.world.storage.MapData.MapData ( String  par1Str)

Member Function Documentation

MapInfo net.minecraft.world.storage.MapData.func_82568_a ( EntityPlayer  par1EntityPlayer)
byte [] net.minecraft.world.storage.MapData.getUpdatePacketData ( ItemStack  par1ItemStack,
World  par2World,
EntityPlayer  par3EntityPlayer 
)

Get byte array of packet data to send to players on map for updating map data

void net.minecraft.world.storage.MapData.readFromNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

reads in data from the NBTTagCompound into this MapDataBase

Implements net.minecraft.world.WorldSavedData.

void net.minecraft.world.storage.MapData.setColumnDirty ( int  par1,
int  par2,
int  par3 
)

Marks a vertical range of pixels as being modified so they will be resent to clients. Parameters: X, lowest Y, highest Y

void net.minecraft.world.storage.MapData.updateMPMapData ( byte[]  par1ArrayOfByte)

Updates the client's map with information from other players in MP

void net.minecraft.world.storage.MapData.updateVisiblePlayers ( EntityPlayer  par1EntityPlayer,
ItemStack  par2ItemStack 
)

Adds the player passed to the list of visible players and checks to see which players are visible

void net.minecraft.world.storage.MapData.writeToNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities

Implements net.minecraft.world.WorldSavedData.

Member Data Documentation

byte [] net.minecraft.world.storage.MapData.colors = new byte[16384]

colours

int net.minecraft.world.storage.MapData.dimension
List net.minecraft.world.storage.MapData.playersArrayList = new ArrayList()

Holds a reference to the MapInfo of the players who own a copy of the map

Map net.minecraft.world.storage.MapData.playersVisibleOnMap = new LinkedHashMap()
byte net.minecraft.world.storage.MapData.scale
int net.minecraft.world.storage.MapData.xCenter
int net.minecraft.world.storage.MapData.zCenter

The documentation for this class was generated from the following file: