Class ClickerManager

java.lang.Object
org.strassburger.cookieclickerz.util.ClickerManager

public class ClickerManager extends Object
  • Constructor Details

  • Method Details

    • addClicker

      public void addClicker(String clicker, String name)
      Adds a clicker to the clicker.yml
      Parameters:
      clicker - The location of the clicker
      name - The name of the clicker
    • addClicker

      public void addClicker(org.bukkit.Location clicker, String name)
      Adds a clicker to the clicker.yml
      Parameters:
      clicker - The location of the clicker
      name - The name of the clicker
    • isClicker

      public boolean isClicker(String clicker)
      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

      public void removeClicker(String name)
      Removes a clicker from the clicker.yml
      Parameters:
      name - The name of the clicker
    • getClicker

      public ClickerManager.Clicker getClicker(String name)
      Gets a clicker
      Parameters:
      name - The name of the clicker
      Returns:
      The clicker
    • getClickers

      public List<ClickerManager.Clicker> getClickers()
      Gets a list of all clickers
      Returns:
      A list of all clickers
    • getClickerKeys

      @NotNull public @NotNull List<String> getClickerKeys()
      Gets a list of all clicker names
      Returns:
      A list of all clicker names
    • getClickerLocationAsString

      public String getClickerLocationAsString(String name)
      Gets the location of a clicker
      Parameters:
      name - The name of the clicker
      Returns:
      The location of the clicker
    • getClickerLocation

      public org.bukkit.Location getClickerLocation(String name)
      Gets the location of a clicker
      Parameters:
      name - The name of the clicker
      Returns:
      The location of the clicker