Class ModMetadata
java.lang.Object
my.celium.org.metadata.ModMetadata
Small immutable description of a mod that uses Mycel.
A dependent mod registers one instance via Mycel.registerMod(...).
Mycel uses it for logging context, configuration file names, translation
namespaces, diagnostics and (opt-in) update checking.
Mycel never hardcodes known mods; any mod may register itself.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder with validation. -
Method Summary
Modifier and TypeMethodDescriptionauthors()Authors, nevernull(possibly empty).static ModMetadata.BuilderbooleaninthashCode()id()Lowercase namespaced id, e.g.name()Human readable name, e.g.toString()Optional URL returning update metadata JSON for this mod.version()Mod version string, e.g.website()Project website, may benull.
-
Method Details
-
id
Lowercase namespaced id, e.g."doubledoors". -
name
Human readable name, e.g."Double Doors". -
version
Mod version string, e.g."1.4.0". -
website
Project website, may benull. -
authors
-
updateUrl
Optional URL returning update metadata JSON for this mod. Update checking is asynchronous, cached and failure-tolerant.nulldisables update checking for this mod. -
equals
-
hashCode
-
toString
-
builder
-