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 |
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) |
void |
updateMapData(int x,
int y) |
void |
updateVisiblePlayers(EntityPlayer player,
ItemStack mapStack) |
NBTTagCompound |
writeToNBT(NBTTagCompound compound) |
deserializeNBT, isDirty, markDirty, serializeNBT, setDirty
public 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 WorldSavedData
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class WorldSavedData
public 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_)
@Nullable public Packet<?> getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
public void updateMapData(int x, int y)
public MapData.MapInfo getMapInfo(EntityPlayer player)