MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getConverterData

Method getConverterData

src/main/Main.java:132–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 1

MainMethod · 0.95

Calls 15

toStringMethod · 0.95
logMethod · 0.95
warnMethod · 0.95
setWorldMethod · 0.95
setPlaceMethod · 0.95
setGameMethod · 0.95
setOptionMethod · 0.95
setTexturePackMethod · 0.95
getTexturePackMethod · 0.95
setUpdateTexturesMethod · 0.95
getWorldMethod · 0.45

Tested by

no test coverage detected