Package net.jeqo.bloons.balloon
Class BalloonCore
java.lang.Object
net.jeqo.bloons.balloon.BalloonCore
The core class to handle the registering of multipart balloons
-
Field Summary
FieldsModifier and TypeFieldDescriptionContains all valid and loaded multipart balloon types/configurationsContains all valid and loaded single balloon types/configurations -
Constructor Summary
ConstructorsConstructorDescriptionBalloonCore
(org.bukkit.plugin.java.JavaPlugin plugin) Creates a new empty balloon core instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the registered balloons list contains a balloon with the specified IDboolean
Checks if the registered balloons list contains a single balloon with the specified IDvoid
Copies the example balloons folder to the plugin's data folder if it doesn't existRetrieves a balloon by its ID from the registered balloons listRetrieves a single balloon by its ID from the registered balloons listvoid
Initializes the balloons from the config and clears the current balloons map
-
Field Details
-
multipartBalloonTypes
Contains all valid and loaded multipart balloon types/configurations -
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
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
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
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
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
-