Finishes custom java path

Adds missing menu items
Adds menu item functionality
This commit is contained in:
2021-08-02 22:24:10 +02:00
parent 0018816d90
commit e4be75b770
3 changed files with 75 additions and 6 deletions

View File

@ -94,26 +94,44 @@ public class ServerLauncherController {
/**
* Gets the command for running java
*
* <p>To play on the newest version of Minecraft, this needs to be JDK 16. Can be just "java" or a file path.</p>
*
* @return <p>The command for running java</p>
* @return <p>The command for running Java</p>
*/
public String getJavaCommand() {
return javaCommand;
}
/**
* Gets the command for running older versions of java
* Gets the command for running older versions of Java
*
* <p>The command used to run older minecraft server versions. JRE 8 should probably work.
* Can be just "java" or a file path.</p>
*
* @return <p>The command for running older versions of java</p>
* @return <p>The command for running older versions of Java</p>
*/
public String getOldJavaCommand() {
return oldJavaCommand;
}
/**
* Sets the command for running Java
*
* <p>To play on the newest version of Minecraft, this needs to be JDK 16. Can be just "java" or a file path.</p>
*
* @param javaCommand <p>The command used for running Java</p>
*/
public void setJavaCommand(String javaCommand) {
this.javaCommand = javaCommand;
}
/**
* Sets the command for running older versions of java
*
* @param oldJavaCommand <p>The command used for running older versions of Java</p>
*/
public void setOldJavaCommand(String oldJavaCommand) {
this.oldJavaCommand = oldJavaCommand;
}
@Override
public String toString() {
int guiWidth;