Record Class BuildConfig
java.lang.Object
java.lang.Record
net.darkhax.mmc.config.BuildConfig
public record BuildConfig(ModData mod, HostedProject curseforge, HostedProject modrinth, @Nullable List<Dependency> dependencies, Boolean enable_compat_mode)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuildConfig(ModData mod, HostedProject curseforge, HostedProject modrinth, List<Dependency> dependencies, Boolean enable_compat_mode) Creates an instance of aBuildConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDependencies(org.gradle.api.Project project, Platform platform) Returns the value of thecurseforgerecord component.Returns the value of thedependenciesrecord component.Returns the value of theenable_compat_moderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmod()Returns the value of themodrecord component.modrinth()Returns the value of themodrinthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildConfig
public BuildConfig(ModData mod, HostedProject curseforge, HostedProject modrinth, @Nullable List<Dependency> dependencies, Boolean enable_compat_mode) Creates an instance of aBuildConfigrecord class.- Parameters:
mod- the value for themodrecord componentcurseforge- the value for thecurseforgerecord componentmodrinth- the value for themodrinthrecord componentdependencies- the value for thedependenciesrecord componentenable_compat_mode- the value for theenable_compat_moderecord component
-
-
Method Details
-
applyDependencies
-
cursePage
-
modrinthPage
-
issuesPage
-
isCompatabilityEnabled
public boolean isCompatabilityEnabled() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mod
Returns the value of themodrecord component.- Returns:
- the value of the
modrecord component
-
curseforge
Returns the value of thecurseforgerecord component.- Returns:
- the value of the
curseforgerecord component
-
modrinth
Returns the value of themodrinthrecord component.- Returns:
- the value of the
modrinthrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
enable_compat_mode
Returns the value of theenable_compat_moderecord component.- Returns:
- the value of the
enable_compat_moderecord component
-