public static class VanillaVersion.VanillaVersionBuilder extends java.lang.Object implements IBuilder<VanillaVersion>
FlowUpdater.FlowUpdaterBuilder
Constructor and Description |
---|
VanillaVersionBuilder() |
Modifier and Type | Method and Description |
---|---|
VanillaVersion |
build()
Build a new
VanillaVersion instance with provided arguments. |
VanillaVersion.VanillaVersionBuilder |
withAnotherAssets(AssetDownloadable... anotherAssets)
Add custom assets to the version.
|
VanillaVersion.VanillaVersionBuilder |
withAnotherAssets(java.util.Collection<AssetDownloadable> anotherAssets)
Add custom assets to the version.
|
VanillaVersion.VanillaVersionBuilder |
withAnotherLibraries(java.util.Collection<Downloadable> anotherLibraries)
Add custom libraries to the version.
|
VanillaVersion.VanillaVersionBuilder |
withAnotherLibraries(Downloadable... anotherLibraries)
Add custom libraries to the version.
|
VanillaVersion.VanillaVersionBuilder |
withCustomAssetIndex(AssetIndex assetIndex)
Add custom asset index to the version.
|
VanillaVersion.VanillaVersionBuilder |
withCustomVersionJson(com.google.gson.JsonObject customVersionJson)
Define the version's json.
|
VanillaVersion.VanillaVersionBuilder |
withCustomVersionJson(java.net.URL customVersionJsonUrl)
Define the version's json.
|
VanillaVersion.VanillaVersionBuilder |
withMCP(MCP mcp)
Append a mcp object to the version
|
VanillaVersion.VanillaVersionBuilder |
withMCP(java.lang.String mcpJsonUrl)
Append a mcp object to the version
|
VanillaVersion.VanillaVersionBuilder |
withMCP(java.net.URL mcpJsonUrl)
Append a mcp object to the version
|
VanillaVersion.VanillaVersionBuilder |
withName(java.lang.String name)
Define the name of the wanted Minecraft version.
|
VanillaVersion.VanillaVersionBuilder |
withSnapshot(boolean snapshot)
Required if you want the latest snapshot version.
|
public VanillaVersion.VanillaVersionBuilder withName(java.lang.String name)
name
- wanted Minecraft's version.public VanillaVersion.VanillaVersionBuilder withMCP(MCP mcp)
mcp
- the mcp object to append.public VanillaVersion.VanillaVersionBuilder withMCP(java.net.URL mcpJsonUrl)
mcpJsonUrl
- the mcp json url of mcp object to append.public VanillaVersion.VanillaVersionBuilder withMCP(java.lang.String mcpJsonUrl)
mcpJsonUrl
- the mcp json url of mcp object to append.public VanillaVersion.VanillaVersionBuilder withSnapshot(boolean snapshot)
snapshot
- if the version is a snapshot.public VanillaVersion.VanillaVersionBuilder withCustomAssetIndex(AssetIndex assetIndex)
assetIndex
- the custom asset index to add.public VanillaVersion.VanillaVersionBuilder withAnotherAssets(java.util.Collection<AssetDownloadable> anotherAssets)
anotherAssets
- custom assets to add.public VanillaVersion.VanillaVersionBuilder withAnotherAssets(AssetDownloadable... anotherAssets)
anotherAssets
- custom assets to add.public VanillaVersion.VanillaVersionBuilder withAnotherLibraries(java.util.Collection<Downloadable> anotherLibraries)
anotherLibraries
- custom libraries to add.public VanillaVersion.VanillaVersionBuilder withAnotherLibraries(Downloadable... anotherLibraries)
anotherLibraries
- custom libraries to add.public VanillaVersion.VanillaVersionBuilder withCustomVersionJson(com.google.gson.JsonObject customVersionJson)
customVersionJson
- the custom version's json to set.public VanillaVersion.VanillaVersionBuilder withCustomVersionJson(java.net.URL customVersionJsonUrl)
customVersionJsonUrl
- the custom version's json url to set.public VanillaVersion build() throws BuilderException
VanillaVersion
instance with provided arguments.build
in interface IBuilder<VanillaVersion>
BuilderException
- if an error occurred.