Package net.minecraft.src
Class MapData
java.lang.Object
net.minecraft.src.WorldSavedData
net.minecraft.src.MapData
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]coloursbyteHolds a reference to the MapInfo of the players who own a copy of the mapbyteintintFields inherited from class net.minecraft.src.WorldSavedData
mapName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfunc_82568_a(EntityPlayer par1EntityPlayer) byte[]getUpdatePacketData(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) Get byte array of packet data to send to players on map for updating map databooleanisEntityLocationVisibleOnMap(Entity entity) booleanisLocationVisibleOnMap(World world, int i, int j, int k) voidreadFromNBT(NBTTagCompound par1NBTTagCompound) reads in data from the NBTTagCompound into this MapDataBasevoidsetColumnDirty(int par1, int par2, int par3) Marks a vertical range of pixels as being modified so they will be resent to clients.voidupdateMPMapData(byte[] par1ArrayOfByte) Updates the client's map with information from other players in MPvoidupdateVisiblePlayers(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack) Adds the player passed to the list of visible players and checks to see which players are visiblevoidwriteToNBT(NBTTagCompound par1NBTTagCompound) write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntitiesMethods inherited from class net.minecraft.src.WorldSavedData
isDirty, markDirty, setDirty
-
Field Details
-
xCenter
public int xCenter -
zCenter
public int zCenter -
dimension
public byte dimension -
scale
public byte scale -
colors
public byte[] colorscolours -
playersArrayList
Holds a reference to the MapInfo of the players who own a copy of the map -
playersVisibleOnMap
-
-
Constructor Details
-
MapData
-
-
Method Details
-
readFromNBT
reads in data from the NBTTagCompound into this MapDataBase- Specified by:
readFromNBTin classWorldSavedData
-
writeToNBT
write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities- Specified by:
writeToNBTin classWorldSavedData
-
updateVisiblePlayers
Adds the player passed to the list of visible players and checks to see which players are visible -
getUpdatePacketData
public byte[] getUpdatePacketData(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) Get byte array of packet data to send to players on map for updating map data -
setColumnDirty
public void setColumnDirty(int par1, int par2, int par3) Marks a vertical range of pixels as being modified so they will be resent to clients. Parameters: X, lowest Y, highest Y -
updateMPMapData
public void updateMPMapData(byte[] par1ArrayOfByte) Updates the client's map with information from other players in MP -
func_82568_a
-
isEntityLocationVisibleOnMap
-
isLocationVisibleOnMap
-