public class MapData extends WorldSavedData
| Modifier and Type | Class and Description |
|---|---|
class |
MapData.MapInfo |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
colors |
int |
dimension |
java.util.Map<java.lang.String,MapDecoration> |
mapDecorations |
java.util.List<MapData.MapInfo> |
playersArrayList |
private java.util.Map<EntityPlayer,MapData.MapInfo> |
playersHashMap |
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 map,
BlockPos target,
java.lang.String decorationName,
MapDecoration.Type type) |
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) |
private void |
updateDecorations(MapDecoration.Type type,
World worldIn,
java.lang.String decorationName,
double worldX,
double worldZ,
double rotationIn) |
void |
updateMapData(int x,
int y) |
void |
updateVisiblePlayers(EntityPlayer player,
ItemStack mapStack) |
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
private final java.util.Map<EntityPlayer,MapData.MapInfo> playersHashMap
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 map, BlockPos target, java.lang.String decorationName, MapDecoration.Type type)
private void updateDecorations(MapDecoration.Type type, World worldIn, java.lang.String decorationName, double worldX, double worldZ, double rotationIn)
@Nullable public Packet<?> getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
public void updateMapData(int x,
int y)
public MapData.MapInfo getMapInfo(EntityPlayer player)