Class BalloonCore

java.lang.Object
net.jeqo.bloons.balloon.BalloonCore

public class BalloonCore extends Object
The core class to handle the registering of multipart balloons
  • Field Details

    • multipartBalloonTypes

      public ArrayList<MultipartBalloonType> multipartBalloonTypes
      Contains all valid and loaded multipart balloon types/configurations
    • singleBalloonTypes

      public ArrayList<SingleBalloonType> singleBalloonTypes
      Contains all valid and loaded single balloon types/configurations
  • Constructor Details

    • BalloonCore

      public BalloonCore(org.bukkit.plugin.java.JavaPlugin plugin)
      Creates a new empty balloon core instance
      Parameters:
      plugin - The plugin instance, type org.bukkit.plugin.java.JavaPlugin
  • Method Details

    • initialize

      public void initialize()
      Initializes the balloons from the config and clears the current balloons map
    • copyExampleBalloons

      public void copyExampleBalloons()
      Copies the example balloons folder to the plugin's data folder if it doesn't exist
    • getMultipartBalloonByID

      public MultipartBalloonType getMultipartBalloonByID(String ID)
      Retrieves a balloon by its ID from the registered balloons list
      Parameters:
      ID - The ID of the balloon, type java.lang.String
      Returns:
      The balloon with the specified name, type net.jeqo.bloons.balloon.multipart.MultipartBalloonType Returns null if no balloon is found by the specified ID
    • getSingleBalloonByID

      public SingleBalloonType getSingleBalloonByID(String ID)
      Retrieves a single balloon by its ID from the registered balloons list
      Parameters:
      ID - The ID of the balloon, type java.lang.String
      Returns:
      The single balloon with the specified ID, type net.jeqo.bloons.balloon.single.SingleBalloonType Returns null if no balloon is found by the specified ID
    • containsMultipartBalloon

      public boolean containsMultipartBalloon(String ID)
      Checks if the registered balloons list contains a balloon with the specified ID
      Parameters:
      ID - The ID of the balloon, type java.lang.String
      Returns:
      Whether the balloon is in the registered balloons list, type boolean
    • containsSingleBalloon

      public boolean containsSingleBalloon(String ID)
      Checks if the registered balloons list contains a single balloon with the specified ID
      Parameters:
      ID - The ID of the balloon, type java.lang.String
      Returns:
      Whether the single balloon is in the registered balloons list, type boolean