Little cleanup of mods.toml & some debugging stuff
This commit is contained in:
parent
30311f89e7
commit
8b3b55507f
|
@ -13,6 +13,10 @@ import java.util.stream.Collectors
|
||||||
class FMLKotlinModLanguageProvider : IModLanguageProvider {
|
class FMLKotlinModLanguageProvider : IModLanguageProvider {
|
||||||
private val logger = LogManager.getLogger()
|
private val logger = LogManager.getLogger()
|
||||||
|
|
||||||
|
init {
|
||||||
|
logger.debug("Init FMLKotlinModLanguageProvider")
|
||||||
|
}
|
||||||
|
|
||||||
override fun name(): String = "kotlinfml"
|
override fun name(): String = "kotlinfml"
|
||||||
|
|
||||||
override fun getFileVisitor(): Consumer<ModFileScanData> {
|
override fun getFileVisitor(): Consumer<ModFileScanData> {
|
||||||
|
|
|
@ -1,52 +1,28 @@
|
||||||
# This is an example mods.toml file. It contains the data relating to the loading mods.
|
modLoader="kotlinfml"
|
||||||
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
|
loaderVersion="[2,)"
|
||||||
# The overall format is standard TOML format, v0.5.0.
|
issueTrackerURL="https://github.com/shadowfacts/Forgelin/issues"
|
||||||
# Note that there are a couple of TOML lists in this file.
|
displayURL="https://github.com/shadowfacts/Forgelin"
|
||||||
# Find more information on toml format here: https://github.com/toml-lang/toml
|
logoFile="examplemod.png"
|
||||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
credits="Emberwalker, for the original Forgelin"
|
||||||
modLoader="kotlinfml" #mandatory
|
|
||||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
|
||||||
loaderVersion="[24,)" #mandatory (24 is current forge version)
|
|
||||||
# A URL to refer people to when problems occur with this mod
|
|
||||||
issueTrackerURL="https://github.com/shadowfacts/Forgelin/issues" #optional
|
|
||||||
# A URL for the "homepage" for this mod, displayed in the mod UI
|
|
||||||
displayURL="https://github.com/shadowfacts/Forgelin" #optional
|
|
||||||
# A file name (in the root of the mod JAR) containing a logo for display
|
|
||||||
logoFile="examplemod.png" #optional
|
|
||||||
# A text field displayed in the mod UI
|
|
||||||
credits="Emberwalker, for the original Forgelin" #optional
|
|
||||||
# A text field displayed in the mod UI
|
|
||||||
authors="shadowfacts" #optional
|
authors="shadowfacts" #optional
|
||||||
# A list of mods - how many allowed here is determined by the individual mod loader
|
|
||||||
[[mods]] #mandatory
|
[[mods]]
|
||||||
# The modid of the mod
|
modId="forgelin"
|
||||||
modId="forgelin" #mandatory
|
version="2.0.0"
|
||||||
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
|
displayName="Shadowfacts' Forgelin"
|
||||||
version="${file.jarVersion}" #mandatory
|
#updateJSONURL="" #optional
|
||||||
# A display name for the mod
|
description="Kotlin provider for Forge."
|
||||||
displayName="Shadowfacts' Forgelin" #mandatory
|
|
||||||
# A URL to query for updates for this mod. See the JSON update specification <here>
|
[[dependencies.forgelin]]
|
||||||
#updateJSONURL="" #optional
|
modId="forge"
|
||||||
# The description text for the mod (multi line!) (#mandatory)
|
mandatory=true
|
||||||
description='''
|
versionRange="[24,)"
|
||||||
Kotlin provider for Forge.
|
|
||||||
'''
|
|
||||||
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
|
|
||||||
[[dependencies.forgelin]] #optional
|
|
||||||
# the modid of the dependency
|
|
||||||
modId="forge" #mandatory
|
|
||||||
# Does this dependency have to exist - if not, ordering below must be specified
|
|
||||||
mandatory=true #mandatory
|
|
||||||
# The version range of the dependency
|
|
||||||
versionRange="[24,)" #mandatory
|
|
||||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
# Here's another dependency
|
|
||||||
[[dependencies.forgelin]]
|
[[dependencies.forgelin]]
|
||||||
modId="minecraft"
|
modId="minecraft"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
versionRange="[1.13]"
|
versionRange="[1.13,)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
|
@ -1,5 +1,5 @@
|
||||||
modLoader="kotlinfml"
|
modLoader="kotlinfml"
|
||||||
loaderVersion="[24,)"
|
loaderVersion="[2,)"
|
||||||
issueTrackerURL="https://github.com/shadowfacts/Forgelin/issues"
|
issueTrackerURL="https://github.com/shadowfacts/Forgelin/issues"
|
||||||
displayURL="https://github.com/shadowfacts/Forgelin"
|
displayURL="https://github.com/shadowfacts/Forgelin"
|
||||||
logoFile="examplemod.png"
|
logoFile="examplemod.png"
|
||||||
|
|
Loading…
Reference in New Issue