API

Nov 5, 2019
API
  • [​IMG]

    In this section you can find all available API methods



    Code (Java):
    /**
    * API for Leader Balloons
    *
    * @since 1.0.0 (04.11.2019)
    * @version 1.0.0
    * @author Nicc0
    */

    public class LeaderBalloonsAPI {
     
        /**
         * This method can be used to create balloon using model that you previously made.
         * @param model, name of the model that you want to use.
         * @param location, where balloon should be spawned.
         * @param resource, name of your resource.
         * @return int, id of the balloon.
         */

        public static int createBalloon(String model, Location location, String resource) {}
     
        /**
         * This method can be used to remove balloon using id.
         * @param id, if of the balloon.
         */

        public static void removeBalloon(int id) {}
     
        /**
         * This method can be used to create new models from "/Models" directory in this resource.
         * @param plugin - your resource
         */

        public static void createModels(JavaPlugin plugin) {}
     
        /**
         * This method can be used to check if model exist in Leader Balloon storage.
         * @param model, that you want to check.
         * @return Returns {@code true} if model is loaded, {@code false} if model isn't loaded.
         */

        public static boolean isLoaded(String model) {}
    }
    Download: Click here

    « Go to previous page
  • Loading...
  • Loading...