how to create an API?

Discussion in 'Plugin Development' started by M4UR0, Nov 6, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    M4UR0

    how to create an API?
     
  2. Offline

    Gamesareme

    @M4UR0 That is a very broad topic. What type of API do you have in mind?
     
  3. Offline

    teej107

    Create methods and classes to control/use your plugin and make them easily available for other plugins to use. Make sure you document those classes and methods as well.
     
  4. Offline

    M4UR0

    @Gamesareme I 'm doing a plugin store, and wanted to use the money to plug what I did.
     
  5. Offline

    Gamesareme

  6. Offline

    rbrick

    @M4UR0
    There is no particular way to make an API.

    This could be in the form of a class that has static methods, or like what Bukkit does, and have multiple interfaces/abstract classes for developers to implement (i.e. CraftBukkit implements the Bukkit API, Glowstone implements the Bukkit API, SpongeForge implements SpongeAPI etc...), to libraries such as the Apache Commons project.

    APIs allow other developers to access aspects of your work, without having to touch your work.

    If anyone wants to clarify, add-on, correct anything I said above, feel free.
    (@teej107)
     
    teej107 likes this.
Thread Status:
Not open for further replies.

Share This Page