Class MapData


  • public class MapData
    extends WorldSavedData
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • xCenter

        public int xCenter
      • zCenter

        public int zCenter
      • dimension

        public byte dimension
      • scale

        public byte scale
      • colors

        public byte[] colors
        + colours
      • playersArrayList

        public java.util.List<MapData.MapInfo> playersArrayList
        + Holds a reference to the MapInfo of the players who own a copy of the map
      • mapDecorations

        public java.util.Map<java.lang.String,​Vec4b> mapDecorations
    • Constructor Detail

      • MapData

        public MapData​(java.lang.String mapname)
    • Method Detail

      • calculateMapCenter

        public void calculateMapCenter​(double x,
                                       double z,
                                       int mapScale)
      • writeToNBT

        public void writeToNBT​(NBTTagCompound nbttagcompound)
        + write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities
        Specified by:
        writeToNBT in class WorldSavedData
      • updateVisiblePlayers

        public void updateVisiblePlayers​(EntityPlayer player,
                                         ItemStack mapStack)
        + Adds the player passed to the list of visible players and checks to see which players are visible
      • updateMapData

        public void updateMapData​(int x,
                                  int y)