How to make an API for a plugin?

Discussion in 'Plugin Development' started by calebbfmv, Aug 18, 2012.

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

    calebbfmv

    I need to make an API for a plugin I made so that with another plugin I can use some features in it.
     
  2. Offline

    NSArray

    You add the "public" modifyer to the methods that are part of the API, then in the other other plugin would import your plugin and use those methods. It is also very helpful to document your methods especially if other people won't have the source.
     
  3. Offline

    calebbfmv

    No no, I need to make an API first. :) I really hope I am understanding this ok
     
  4. Offline

    JayzaSapphire

    He just told you how to do it..
     
  5. Offline

    Malikk

    I find it helpful to put all of your API methods in one class, then delegate them out as you need to, that way you don't have to import a crap load of classes.
     
  6. Offline

    Sagacious_Zed Bukkit Docs

    The more proper option is to publish a service via bukkit's service manager.
     
  7. Offline

    Paul O'Reilly

  8. Offline

    Malikk

    I was trying not to confuse him, lol.

    ^this
     
Thread Status:
Not open for further replies.

Share This Page