Class ProjectRelations

java.lang.Object
net.darkhax.curseforgegradle.api.metadata.ProjectRelations

public final class ProjectRelations extends Object
An object that serves as a container for relationships to other projects.
  • Constructor Details

    • ProjectRelations

      public ProjectRelations()
  • Method Details

    • addRelationship

      public void addRelationship(String slug, String type, @Nullable @Nullable String id)
      Adds a new project relationship.
      Parameters:
      slug - The slug of the other project.
      type - The type of relation to add. See Constants.VALID_RELATION_TYPES for types that are known to work.
    • getRelations

      public Set<Relation> getRelations()
      Gets the set of project relationships.
      Returns:
      The set of project relationships.