(int mapId, World worldIn)
| 29 | } |
| 30 | |
| 31 | public static MapData loadMapData(int mapId, World worldIn) |
| 32 | { |
| 33 | String s = "map_" + mapId; |
| 34 | MapData mapdata = (MapData)worldIn.loadItemData(MapData.class, s); |
| 35 | |
| 36 | if (mapdata == null) |
| 37 | { |
| 38 | mapdata = new MapData(s); |
| 39 | worldIn.setItemData(s, mapdata); |
| 40 | } |
| 41 | |
| 42 | return mapdata; |
| 43 | } |
| 44 | |
| 45 | public MapData getMapData(ItemStack stack, World worldIn) |
| 46 | { |
no test coverage detected