Class ClickerManager
java.lang.Object
org.strassburger.cookieclickerz.util.ClickerManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClicker
(String clicker, String name) Adds a clicker to the clicker.ymlvoid
addClicker
(org.bukkit.Location clicker, String name) Adds a clicker to the clicker.ymlgetClicker
(String name) Gets a clickerGets a list of all clicker namesorg.bukkit.Location
getClickerLocation
(String name) Gets the location of a clickerGets the location of a clickerGets a list of all clickersboolean
Checks if a clicker existsboolean
isClicker
(org.bukkit.Location location) Checks if a clicker existsvoid
removeClicker
(String name) Removes a clicker from the clicker.yml
-
Constructor Details
-
ClickerManager
-
-
Method Details
-
addClicker
Adds a clicker to the clicker.yml- Parameters:
clicker
- The location of the clickername
- The name of the clicker
-
addClicker
Adds a clicker to the clicker.yml- Parameters:
clicker
- The location of the clickername
- The name of the clicker
-
isClicker
Checks if a clicker exists- Parameters:
clicker
- The name of the clicker
-
isClicker
public boolean isClicker(org.bukkit.Location location) Checks if a clicker exists- Parameters:
location
- The location of the clicker
-
removeClicker
Removes a clicker from the clicker.yml- Parameters:
name
- The name of the clicker
-
getClicker
Gets a clicker- Parameters:
name
- The name of the clicker- Returns:
- The clicker
-
getClickers
Gets a list of all clickers- Returns:
- A list of all clickers
-
getClickerKeys
Gets a list of all clicker names- Returns:
- A list of all clicker names
-
getClickerLocationAsString
Gets the location of a clicker- Parameters:
name
- The name of the clicker- Returns:
- The location of the clicker
-
getClickerLocation
Gets the location of a clicker- Parameters:
name
- The name of the clicker- Returns:
- The location of the clicker
-