Class VersionMeta
-
- All Implemented Interfaces:
public final class VersionMetaVersionMeta containing available versions and important details for Minecraft, Fabric and Forge.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final URLlegacyFabricUrlGameprivate final URLlegacyFabricUrlLoaderprivate final URLlegacyfabricUrlManifestprivate final URLminecraftUrlManifestprivate final URLforgeUrlManifestprivate final URLoldNeoForgeUrlManifestprivate final URLnewNeoForgeUrlManifestprivate final URLfabricUrlManifestprivate final URLfabricUrlIntermediariesManifestprivate final URLfabricUrlInstallerManifestprivate final URLquiltUrlManifestprivate final URLquiltUrlInstallerManifestprivate final MinecraftMetaminecraftprivate final FabricMetafabricprivate final ForgeMetaforgeprivate final NeoForgeMetaneoForgeprivate final QuiltMetaquiltprivate final LegacyFabricMetalegacyFabricprivate final FabricIntermediariesfabricIntermediaries
-
Constructor Summary
Constructors Constructor Description VersionMeta(File minecraftManifest, File forgeManifest, File oldNeoForgeManifest, File newNeoForgeManifest, File fabricManifest, File fabricInstallerManifest, File fabricIntermediariesManifest, File quiltManifest, File quiltInstallerManifest, File legacyFabricGameManifest, File legacyFabricLoaderManifest, File legacyFabricInstallerManifest, ObjectMapper objectMapper, Utilities utilities, ApiProperties apiProperties)
-
Method Summary
Modifier and Type Method Description final URLgetLegacyFabricUrlGame()final URLgetLegacyFabricUrlLoader()final URLgetLegacyfabricUrlManifest()final URLgetMinecraftUrlManifest()final URLgetForgeUrlManifest()final URLgetOldNeoForgeUrlManifest()final URLgetNewNeoForgeUrlManifest()final URLgetFabricUrlManifest()final URLgetFabricUrlIntermediariesManifest()final URLgetFabricUrlInstallerManifest()final URLgetQuiltUrlManifest()final URLgetQuiltUrlInstallerManifest()final MinecraftMetagetMinecraft()final FabricMetagetFabric()final ForgeMetagetForge()final NeoForgeMetagetNeoForge()final QuiltMetagetQuilt()final LegacyFabricMetagetLegacyFabric()final FabricIntermediariesgetFabricIntermediaries()final BooleanawaitManifestRefresh(Long timeoutMillis)Waits up to timeoutMillis for the background manifest refresh to finish, returning whether it did. final VersionMetaupdate()Update the Minecraft, Forge and Fabric metas. -
-
Constructor Detail
-
VersionMeta
VersionMeta(File minecraftManifest, File forgeManifest, File oldNeoForgeManifest, File newNeoForgeManifest, File fabricManifest, File fabricInstallerManifest, File fabricIntermediariesManifest, File quiltManifest, File quiltInstallerManifest, File legacyFabricGameManifest, File legacyFabricLoaderManifest, File legacyFabricInstallerManifest, ObjectMapper objectMapper, Utilities utilities, ApiProperties apiProperties)
- Parameters:
minecraftManifest- Minecraft manifest file.forgeManifest- Forge manifest file.fabricManifest- Fabric manifest file.fabricInstallerManifest- Fabric-installer manifest file.fabricIntermediariesManifest- Fabric Intermediary manifest-file.quiltManifest- Quilt manifest file.quiltInstallerManifest- Quilt-installer manifest file.legacyFabricGameManifest- Fabric Legacy Game manifest file.legacyFabricLoaderManifest- Fabric Legacy Loader manifest file.legacyFabricInstallerManifest- Fabric Legacy Installer manifest file.objectMapper- Object mapper-instance for JSON parsing.utilities- Commonly used utilities across ServerPackCreator.apiProperties- ServerPackCreator settings.
-
-
Method Detail
-
getLegacyFabricUrlGame
final URL getLegacyFabricUrlGame()
-
getLegacyFabricUrlLoader
final URL getLegacyFabricUrlLoader()
-
getLegacyfabricUrlManifest
final URL getLegacyfabricUrlManifest()
-
getMinecraftUrlManifest
final URL getMinecraftUrlManifest()
-
getForgeUrlManifest
final URL getForgeUrlManifest()
-
getOldNeoForgeUrlManifest
final URL getOldNeoForgeUrlManifest()
-
getNewNeoForgeUrlManifest
final URL getNewNeoForgeUrlManifest()
-
getFabricUrlManifest
final URL getFabricUrlManifest()
-
getFabricUrlIntermediariesManifest
final URL getFabricUrlIntermediariesManifest()
-
getFabricUrlInstallerManifest
final URL getFabricUrlInstallerManifest()
-
getQuiltUrlManifest
final URL getQuiltUrlManifest()
-
getQuiltUrlInstallerManifest
final URL getQuiltUrlInstallerManifest()
-
getMinecraft
final MinecraftMeta getMinecraft()
-
getFabric
final FabricMeta getFabric()
-
getNeoForge
final NeoForgeMeta getNeoForge()
-
getLegacyFabric
final LegacyFabricMeta getLegacyFabric()
-
getFabricIntermediaries
final FabricIntermediaries getFabricIntermediaries()
-
awaitManifestRefresh
final Boolean awaitManifestRefresh(Long timeoutMillis)
Waits up to timeoutMillis for the background manifest refresh to finish, returning whether it did.
For callers that must not show stale versions — the GUI's version dropdowns are built once and never repopulated, so a freshly released Minecraft version would otherwise be missing until the next launch. Cheap in practice: by the time a user can click anything the refresh has long finished, and this returns immediately. Bounded so an unreachable host delays a dropdown instead of hanging the UI.
-
update
final VersionMeta update()
Update the Minecraft, Forge and Fabric metas. Usually called when the manifest files have been refreshed.
- Returns:
The instance of this version meta, updated.
-
-
-
-