Class ModInfoBuilder
java.lang.Object
dev.puzzleshq.mod.info.ModInfoBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAccessWriter
(String transformer) Adds an Access writer file.void
Adds one or more authors.void
addDependency
(ModDependency dependency) Adds a new dependency.void
addEntrypoint
(String key, EntrypointPair value) Adds a new entrypoint.void
addEntrypoint
(String key, String value) Adds a new entrypoint.void
Adds to the meta data map.void
addMixinConfig
(MixinConfig config) Adds a mixin config.build()
Builds the modInfo.Gets the access writers.Gets the authors.Gets the dependencies.Gets the description.Gets the display name.Gets the Entrypoint map.Gets the format.getId()
Gets the ID.Gets the loadable sides.Gets the MetaData.Gets the MixinConfigs.Gets the version.void
setDescription
(String description) Sets the description.void
setDisplayName
(String displayName) Sets the display name.void
setFormat
(IModFormat format) Sets the format of the mod.json.void
Sets the ID.void
setLoadableSide
(String side, Boolean shouldLoadOn) Adds what sides the mod should it load on.void
setVersion
(String version) Sets the version.
-
Constructor Details
-
ModInfoBuilder
public ModInfoBuilder()
-
-
Method Details
-
setDisplayName
Sets the display name.- Parameters:
displayName
- the new display name.
-
setId
-
setVersion
-
setDescription
Sets the description.- Parameters:
description
- the new description.
-
addAuthor
Adds one or more authors.- Parameters:
author
- the author to add.
-
addMeta
Adds to the meta data map.- Parameters:
key
- the key of the data.value
- the value of the data.
-
addMixinConfig
Adds a mixin config.- Parameters:
config
- the new config to add.- See Also:
-
addAccessWriter
Adds an Access writer file.- Parameters:
transformer
- the new access writer file name to add.
-
setLoadableSide
-
addEntrypoint
-
addEntrypoint
Adds a new entrypoint.- Parameters:
key
- the entrypoint name.value
- the newEntrypointPair
.
-
addDependency
Adds a new dependency.- Parameters:
dependency
- the newModDependency
.- See Also:
-
setFormat
Sets the format of the mod.json.- Parameters:
format
- theIModFormat
.
-
build
-
getDisplayName
Gets the display name. -
getId
Gets the ID. -
getVersion
Gets the version. -
getDescription
Gets the description. -
getAuthors
-
getMetadata
-
getEntrypointMap
Gets the Entrypoint map.- Returns:
- a
Map
the key is the entrypoint name and the value is aList
ofEntrypointPair
.
-
getMixinConfigs
-
getAccessWriters
-
getLoadableSides
-
getDependencies
Gets the dependencies.- Returns:
- a
List
ofModDependency
.
-
getFormat
-