public class MapData extends WorldSavedData
Modifier and Type | Class and Description |
---|---|
class |
MapData.MapInfo |
Modifier and Type | Field and Description |
---|---|
byte[] |
colors
colours
|
int |
dimension |
java.util.Map<java.lang.String,Vec4b> |
mapDecorations |
java.util.List<MapData.MapInfo> |
playersArrayList |
byte |
scale |
int |
xCenter |
int |
zCenter |
mapName
Constructor and Description |
---|
MapData(java.lang.String mapname) |
Modifier and Type | Method and Description |
---|---|
void |
calculateMapCenter(double x,
double z,
int mapScale) |
MapData.MapInfo |
getMapInfo(EntityPlayer player) |
Packet |
getMapPacket(ItemStack mapStack,
World worldIn,
EntityPlayer player) |
void |
readFromNBT(NBTTagCompound nbt)
reads in data from the NBTTagCompound into this MapDataBase
|
void |
updateMapData(int x,
int y) |
void |
updateVisiblePlayers(EntityPlayer player,
ItemStack mapStack)
Adds the player passed to the list of visible players and checks to see which players are visible
|
void |
writeToNBT(NBTTagCompound nbt)
write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities
|
isDirty, markDirty, setDirty
public int xCenter
public int zCenter
public int dimension
public byte scale
public byte[] colors
public java.util.List<MapData.MapInfo> playersArrayList
public java.util.Map<java.lang.String,Vec4b> mapDecorations
public void calculateMapCenter(double x, double z, int mapScale)
public void readFromNBT(NBTTagCompound nbt)
readFromNBT
in class WorldSavedData
public void writeToNBT(NBTTagCompound nbt)
writeToNBT
in class WorldSavedData
public void updateVisiblePlayers(EntityPlayer player, ItemStack mapStack)
public Packet getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
public void updateMapData(int x, int y)
public MapData.MapInfo getMapInfo(EntityPlayer player)