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,Vec4b> |
mapDecorations |
java.util.List<MapData.MapInfo> |
playersArrayList |
byte |
scale |
boolean |
trackingPosition |
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) |
void |
updateMapData(int x,
int y) |
void |
updateVisiblePlayers(EntityPlayer player,
ItemStack mapStack) |
NBTTagCompound |
writeToNBT(NBTTagCompound p_189551_1_) |
deserializeNBT, isDirty, markDirty, serializeNBT, setDirty
public int xCenter
public int zCenter
public int dimension
public boolean trackingPosition
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 NBTTagCompound writeToNBT(NBTTagCompound p_189551_1_)
writeToNBT
in class WorldSavedData
public void updateVisiblePlayers(EntityPlayer player, ItemStack mapStack)
@Nullable public Packet<?> getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
public void updateMapData(int x, int y)
public MapData.MapInfo getMapInfo(EntityPlayer player)