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 Details

    • BuildConfig

      public BuildConfig(ModData mod, HostedProject curseforge, HostedProject modrinth, @Nullable List<Dependency> dependencies, Boolean enable_compat_mode)
      Creates an instance of a BuildConfig record class.
      Parameters:
      mod - the value for the mod record component
      curseforge - the value for the curseforge record component
      modrinth - the value for the modrinth record component
      dependencies - the value for the dependencies record component
      enable_compat_mode - the value for the enable_compat_mode record component
  • Method Details

    • applyDependencies

      public void applyDependencies(org.gradle.api.Project project, Platform platform)
    • cursePage

      public String cursePage()
    • modrinthPage

      public String modrinthPage()
    • issuesPage

      public String issuesPage()
    • isCompatabilityEnabled

      public boolean isCompatabilityEnabled()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mod

      public ModData mod()
      Returns the value of the mod record component.
      Returns:
      the value of the mod record component
    • curseforge

      public HostedProject curseforge()
      Returns the value of the curseforge record component.
      Returns:
      the value of the curseforge record component
    • modrinth

      public HostedProject modrinth()
      Returns the value of the modrinth record component.
      Returns:
      the value of the modrinth record component
    • dependencies

      @Nullable public List<Dependency> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • enable_compat_mode

      public Boolean enable_compat_mode()
      Returns the value of the enable_compat_mode record component.
      Returns:
      the value of the enable_compat_mode record component