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,MapDecoration> |
mapDecorations |
java.util.List<MapData.MapInfo> |
playersArrayList
Holds a reference to the MapInfo of the players who own a copy of the map
|
byte |
scale |
boolean |
trackingPosition |
boolean |
unlimitedTracking |
int |
xCenter |
int |
zCenter |
mapName| Constructor and Description |
|---|
MapData(java.lang.String mapname) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTargetDecoration(ItemStack p_191094_0_,
BlockPos p_191094_1_,
java.lang.String p_191094_2_,
MapDecoration.Type p_191094_3_) |
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
|
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
deserializeNBT, isDirty, markDirty, serializeNBT, setDirtypublic int xCenter
public int zCenter
public int dimension
public boolean trackingPosition
public boolean unlimitedTracking
public byte scale
public byte[] colors
public java.util.List<MapData.MapInfo> playersArrayList
public java.util.Map<java.lang.String,MapDecoration> mapDecorations
public void calculateMapCenter(double x,
double z,
int mapScale)
public void readFromNBT(NBTTagCompound nbt)
readFromNBT in class WorldSavedDatapublic NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT in class WorldSavedDatapublic void updateVisiblePlayers(EntityPlayer player, ItemStack mapStack)
public static void addTargetDecoration(ItemStack p_191094_0_, BlockPos p_191094_1_, java.lang.String p_191094_2_, MapDecoration.Type p_191094_3_)
public Packet<?> getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
public void updateMapData(int x,
int y)
public MapData.MapInfo getMapInfo(EntityPlayer player)