Class ServerPackManifest
-
- All Implemented Interfaces:
public final class ServerPackManifestThe server pack manifest shipped with every modpack. It includes information about the
Minecraft version
Modloader
Modloader version
ServerPackCreator version used in the generation of this server pack
A list of relative files included in a server pack
Griefed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classServerPackManifest.CompanionWhere a server pack's manifest lives — the single place that answer is spelled.
Load-bearing rather than merely tidy: the manifest's presence is what tells ServerPackUpdater a generation is an update of an existing pack rather than a first run, and that decision governs what may be overwritten and what must be preserved — a world, an
ops.json, a hand-tunedserver.propertiesthat ServerPackCreator never wrote. A second spelling of the name would mean one caller looking where another does not write.
-
Field Summary
Fields Modifier and Type Field Description public final static StringFILE_NAMEprivate List<String>filesprivate StringminecraftVersionprivate Stringmodloaderprivate StringmodloaderVersionprivate final StringserverPackCreatorVersionpublic final static ServerPackManifest.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description ServerPackManifest(List<String> files, String minecraftVersion, String modloader, String modloaderVersion)ServerPackManifest()
-
Method Summary
Modifier and Type Method Description final List<String>getFiles()final UnitsetFiles(List<String> value)final StringgetMinecraftVersion()final UnitsetMinecraftVersion(String value)final StringgetModloader()final UnitsetModloader(String value)final StringgetModloaderVersion()final UnitsetModloaderVersion(String value)final StringgetServerPackCreatorVersion()final UnitwriteToFile(File destination, ObjectMapper objectMapper)Serialise this manifest into the given server pack directory as FILE_NAME. -
-
Method Detail
-
getMinecraftVersion
final String getMinecraftVersion()
-
setMinecraftVersion
final Unit setMinecraftVersion(String value)
-
getModloader
final String getModloader()
-
setModloader
final Unit setModloader(String value)
-
getModloaderVersion
final String getModloaderVersion()
-
setModloaderVersion
final Unit setModloaderVersion(String value)
-
getServerPackCreatorVersion
final String getServerPackCreatorVersion()
-
writeToFile
final Unit writeToFile(File destination, ObjectMapper objectMapper)
Serialise this manifest into the given server pack directory as FILE_NAME.
-
-
-
-