()
| 130 | } |
| 131 | |
| 132 | public ConverterData getConverterData() { |
| 133 | ConverterData converterData = new ConverterData(); |
| 134 | |
| 135 | Place place = this.gui.getPlaceFromCoordinates(); |
| 136 | World world = this.gui.getWorld(); |
| 137 | if (world == null) { |
| 138 | return null; |
| 139 | } |
| 140 | String worldName = world.toString(); |
| 141 | Loggger.log("world = " + worldName); |
| 142 | if (place == null) { |
| 143 | Loggger.warn("Place not found"); |
| 144 | } |
| 145 | place.setWorld(worldName); |
| 146 | converterData.setPlace(place); |
| 147 | |
| 148 | converterData.setGame(this.gui.getSourceGame()); |
| 149 | |
| 150 | // option |
| 151 | String optionName = this.gui.getConvertOption(); |
| 152 | Loggger.log("option = " + optionName); |
| 153 | ConvertOption option = Periphery.CONFIG.getConvertOption(optionName); |
| 154 | converterData.setOption(option); |
| 155 | |
| 156 | // textures |
| 157 | converterData.setTexturePack(TexturePack.getTexturePack(this.gui.getTexturePack())); |
| 158 | converterData.setUpdateTextures(this.gui.getUpdateTextures()); |
| 159 | return converterData; |
| 160 | } |
| 161 | } |
no test coverage detected