@@ -48,6 +48,7 @@ public class LaunchOptions implements Serializable {
4848 private boolean pojavBigCore ;
4949 private Renderer renderer ;
5050 private String uuid ;
51+ private boolean debugLog ;
5152
5253 /**
5354 * The game directory
@@ -179,6 +180,10 @@ public String getUuid() {
179180 return uuid ;
180181 }
181182
183+ public boolean isDebugLog () {
184+ return debugLog ;
185+ }
186+
182187 public static class Builder {
183188
184189 private final LaunchOptions options = new LaunchOptions ();
@@ -187,123 +192,20 @@ public LaunchOptions create() {
187192 return options ;
188193 }
189194
190- /**
191- * The game directory
192- */
193- public File getGameDir () {
194- return options .gameDir ;
195- }
196-
197- /**
198- * The Java Environment that Minecraft runs on.
199- */
200- public JavaVersion getJava () {
201- return options .java ;
202- }
203-
204- /**
205- * Will shown in the left bottom corner of the main menu of Minecraft.
206- * null if use the id of launch version.
207- */
208- public String getVersionName () {
209- return options .versionName ;
210- }
211-
212- /**
213- * Will shown in the left bottom corner of the main menu of Minecraft.
214- * null if use Version.versionType.
215- */
216- public String getVersionType () {
217- return options .versionType ;
218- }
219-
220- /**
221- * Don't know what the hell this is.
222- */
223- public String getProfileName () {
224- return options .profileName ;
225- }
226-
227195 /**
228196 * User custom additional minecraft command line arguments.
229197 */
230198 public List <String > getGameArguments () {
231199 return options .gameArguments ;
232200 }
233201
234- /**
235- * The highest priority JVM arguments (overrides the version setting)
236- */
237- public List <String > getOverrideJavaArguments () {
238- return options .overrideJavaArguments ;
239- }
240-
241202 /**
242203 * User custom additional java virtual machine command line arguments.
243204 */
244205 public List <String > getJavaArguments () {
245206 return options .javaArguments ;
246207 }
247208
248- public List <String > getJavaAgents () {
249- return options .javaAgents ;
250- }
251-
252- /**
253- * The minimum memory that the JVM can allocate.
254- */
255- public Integer getMinMemory () {
256- return options .minMemory ;
257- }
258-
259- /**
260- * The maximum memory that the JVM can allocate.
261- */
262- public Integer getMaxMemory () {
263- return options .maxMemory ;
264- }
265-
266- /**
267- * The initial game window width
268- */
269- public Integer getWidth () {
270- return options .width ;
271- }
272-
273- /**
274- * The initial game window height
275- */
276- public Integer getHeight () {
277- return options .height ;
278- }
279-
280- /**
281- * The server ip that will connect to when enter game main menu.
282- */
283- public String getServerIp () {
284- return options .serverIp ;
285- }
286-
287- /**
288- * BE Gesture
289- */
290- public boolean isBeGesture () {
291- return options .beGesture ;
292- }
293-
294- /**
295- * vulkanDriverSystem
296- */
297- public boolean isVKDriverSystem () {
298- return options .vulkanDriverSystem ;
299- }
300-
301- /**
302- * Renderer
303- */
304- public Renderer getRenderer () {
305- return options .renderer ;
306- }
307209
308210 public Builder setGameDir (File gameDir ) {
309211 options .gameDir = gameDir ;
@@ -404,5 +306,10 @@ public Builder setUUid(String uuid) {
404306 return this ;
405307 }
406308
309+ public Builder setDebugLog (boolean debugLog ) {
310+ options .debugLog = debugLog ;
311+ return this ;
312+ }
313+
407314 }
408315}
0 commit comments