Package net.minecraft.world.storage
Class MapData
- java.lang.Object
-
- net.minecraft.world.WorldSavedData
-
- net.minecraft.world.storage.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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMapData.MapInfo
-
Field Summary
Fields Modifier and Type Field Description byte[]colors+ coloursbytedimensionjava.util.Map<java.lang.String,Vec4b>mapDecorationsjava.util.List<MapData.MapInfo>playersArrayList+ Holds a reference to the MapInfo of the players who own a copy of the mapbytescaleintxCenterintzCenter-
Fields inherited from class net.minecraft.world.WorldSavedData
mapName
-
-
Constructor Summary
Constructors Constructor Description MapData(java.lang.String mapname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateMapCenter(double x, double z, int mapScale)MapData.MapInfogetMapInfo(EntityPlayer player)PacketgetMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)voidreadFromNBT(NBTTagCompound nbttagcompound)+ reads in data from the NBTTagCompound into this MapDataBasevoidupdateMapData(int x, int y)voidupdateVisiblePlayers(EntityPlayer player, ItemStack mapStack)+ Adds the player passed to the list of visible players and checks to see which players are visiblevoidwriteToNBT(NBTTagCompound nbttagcompound)+ write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities-
Methods inherited from class net.minecraft.world.WorldSavedData
isDirty, markDirty, setDirty
-
-
-
-
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
-
-
Method Detail
-
calculateMapCenter
public void calculateMapCenter(double x, double z, int mapScale)
-
readFromNBT
public void readFromNBT(NBTTagCompound nbttagcompound)
+ reads in data from the NBTTagCompound into this MapDataBase- Specified by:
readFromNBTin classWorldSavedData
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
+ write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities- Specified by:
writeToNBTin classWorldSavedData
-
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
-
getMapPacket
public Packet getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
-
updateMapData
public void updateMapData(int x, int y)
-
getMapInfo
public MapData.MapInfo getMapInfo(EntityPlayer player)
-
-