Class OreProject

java.lang.Object
net.smoofyuniverse.ore.project.OreProject

public class OreProject extends Object
A project on Ore.
  • Field Details

    • pluginId

      public final String pluginId
      The plugin ID.
    • owner

      public String owner
      The owner.
    • name

      public String name
      The name.
  • Constructor Details

    • OreProject

      public OreProject(String pluginId)
      Creates a project object.
      Parameters:
      pluginId - The plugin ID.
  • Method Details

    • getPage

      public Optional<String> getPage()
      Gets the URL of the project page.
      Returns:
      The URL as a string.
    • getVersions

      public OreVersion[] getVersions(OreAPI api) throws IOException
      Gets the latest versions available.
      Parameters:
      api - The API.
      Returns:
      The versions.
      Throws:
      IOException - if an I/O error occurs.
    • getVersions

      public OreVersion[] getVersions(OreAPI api, int offset, int limit) throws IOException
      Gets the versions available.
      Parameters:
      api - The API.
      offset - The index of the first version to get. Sorted by creation date.
      limit - The maximum number of versions to get.
      Returns:
      The versions.
      Throws:
      IOException - if an I/O error occurs.