forked from toolbox4minecraft/amidst
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed the -mclibs command line parameter
- Loading branch information
1 parent
b34ae7c
commit ff7a905
Showing
7 changed files
with
104 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/amidst/mojangapi/file/facade/MinecraftInstallation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package amidst.mojangapi.file.facade; | ||
|
||
import java.io.File; | ||
|
||
import amidst.mojangapi.file.DotMinecraftDirectoryNotFoundException; | ||
import amidst.mojangapi.file.directory.DotMinecraftDirectory; | ||
import amidst.mojangapi.file.service.DotMinecraftDirectoryService; | ||
|
||
public class MinecraftInstallation { | ||
public static MinecraftInstallation newCustomMinecraftInstallation( | ||
File libraries, | ||
File saves, | ||
File versions, | ||
File launcherProfilesJson) throws DotMinecraftDirectoryNotFoundException { | ||
DotMinecraftDirectory dotMinecraftDirectory = new DotMinecraftDirectoryService() | ||
.createCustomDotMinecraftDirectory(libraries, saves, versions, launcherProfilesJson); | ||
return new MinecraftInstallation(dotMinecraftDirectory); | ||
} | ||
|
||
public static MinecraftInstallation newLocalMinecraftInstallation(String preferredDotMinecraftDirectory) | ||
throws DotMinecraftDirectoryNotFoundException { | ||
DotMinecraftDirectory dotMinecraftDirectory = new DotMinecraftDirectoryService() | ||
.createDotMinecraftDirectory(preferredDotMinecraftDirectory); | ||
return new MinecraftInstallation(dotMinecraftDirectory); | ||
} | ||
|
||
private final DotMinecraftDirectory dotMinecraftDirectory; | ||
|
||
public MinecraftInstallation(DotMinecraftDirectory dotMinecraftDirectory) { | ||
this.dotMinecraftDirectory = dotMinecraftDirectory; | ||
} | ||
|
||
public DotMinecraftDirectory getDotMinecraftDirectory() { | ||
return dotMinecraftDirectory; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters