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 class
MapData.MapInfo
-
Field Summary
Fields Modifier and Type Field Description byte[]
colors
+ coloursbyte
dimension
java.util.Map<java.lang.String,Vec4b>
mapDecorations
java.util.List<MapData.MapInfo>
playersArrayList
+ Holds a reference to the MapInfo of the players who own a copy of the mapbyte
scale
int
xCenter
int
zCenter
-
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 void
calculateMapCenter(double x, double z, int mapScale)
MapData.MapInfo
getMapInfo(EntityPlayer player)
Packet
getMapPacket(ItemStack mapStack, World worldIn, EntityPlayer player)
void
readFromNBT(NBTTagCompound nbttagcompound)
+ reads in data from the NBTTagCompound into this MapDataBasevoid
updateMapData(int x, int y)
void
updateVisiblePlayers(EntityPlayer player, ItemStack mapStack)
+ Adds the player passed to the list of visible players and checks to see which players are visiblevoid
writeToNBT(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:
readFromNBT
in classWorldSavedData
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
+ write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities- Specified by:
writeToNBT
in 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)
-
-