Class LibAPIManager

java.lang.Object
me.ulrich.clans.api.LibAPIManager
All Implemented Interfaces:
LibAPI

public class LibAPIManager extends Object implements LibAPI
  • Constructor Details

    • LibAPIManager

      public LibAPIManager(Clans clans)
  • Method Details

    • getAdventure

      public net.kyori.adventure.platform.bukkit.BukkitAudiences getAdventure()
      Specified by:
      getAdventure in interface LibAPI
    • isUseGUI

      public boolean isUseGUI()
      Specified by:
      isUseGUI in interface LibAPI
    • getPluginTag

      public String getPluginTag()
      Specified by:
      getPluginTag in interface LibAPI
    • sendTitle

      public void sendTitle(org.bukkit.entity.Player p, String msg, int fadeIn, int stay, int fadeOut)
      Specified by:
      sendTitle in interface LibAPI
    • resetTitle

      public void resetTitle(org.bukkit.entity.Player p)
      Specified by:
      resetTitle in interface LibAPI
    • sendSubTitle

      public void sendSubTitle(org.bukkit.entity.Player p, String msg, int fadeIn, int stay, int fadeOut)
      Specified by:
      sendSubTitle in interface LibAPI
    • sendTitleSubTitle

      public void sendTitleSubTitle(org.bukkit.entity.Player p, String msg, String msg2, int fadeIn, int stay, int fadeOut)
      Specified by:
      sendTitleSubTitle in interface LibAPI
    • sendActionBar

      public void sendActionBar(org.bukkit.entity.Player p, String message)
      Specified by:
      sendActionBar in interface LibAPI
    • translate

      public String translate(ClanEnum.TranslatableKey trans, String object, String... args)
      Specified by:
      translate in interface LibAPI
    • translateOutReference

      @Deprecated public String translateOutReference(String key, String object, String... args)
      Deprecated.
      Specified by:
      translateOutReference in interface LibAPI
    • getPlugin

      public Clans getPlugin()
    • isTaskInitialized

      public boolean isTaskInitialized()
      Specified by:
      isTaskInitialized in interface LibAPI
    • hasBossbarTask

      public boolean hasBossbarTask(UUID playerUUID)
      Specified by:
      hasBossbarTask in interface LibAPI
    • getBossbarTask

      public Optional<com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> getBossbarTask(UUID playerUUID)
      Specified by:
      getBossbarTask in interface LibAPI
    • stopBossbarTask

      public boolean stopBossbarTask(UUID playerUUID)
      Specified by:
      stopBossbarTask in interface LibAPI
    • createBossbarTask

      public Optional<com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> createBossbarTask(UUID playerUUID, com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask task)
      Specified by:
      createBossbarTask in interface LibAPI
    • isFolia

      public boolean isFolia()
      Specified by:
      isFolia in interface LibAPI
    • getScheduler

      public com.github.Anon8281.universalScheduler.scheduling.schedulers.TaskScheduler getScheduler()
      Specified by:
      getScheduler in interface LibAPI
    • getBossbarTasks

      public HashMap<UUID,com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> getBossbarTasks()
      Specified by:
      getBossbarTasks in interface LibAPI
    • getLibTasks

      public HashMap<UUID,com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> getLibTasks()
      Specified by:
      getLibTasks in interface LibAPI
    • hasLibTask

      public boolean hasLibTask(UUID UUID)
      Specified by:
      hasLibTask in interface LibAPI
    • getLibTask

      public Optional<com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> getLibTask(UUID UUID)
      Specified by:
      getLibTask in interface LibAPI
    • stopLibTask

      public boolean stopLibTask(UUID UUID)
      Specified by:
      stopLibTask in interface LibAPI
    • createLibTask

      public Optional<com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask> createLibTask(UUID UUID, com.github.Anon8281.universalScheduler.scheduling.tasks.MyScheduledTask task)
      Specified by:
      createLibTask in interface LibAPI
    • playSoundForAll

      public boolean playSoundForAll(String sound)
      Specified by:
      playSoundForAll in interface LibAPI
    • playSoundForAll

      public void playSoundForAll(List<String> sounds)
      Specified by:
      playSoundForAll in interface LibAPI
    • playSound

      public boolean playSound(org.bukkit.entity.Player p, List<String> sounds)
      Specified by:
      playSound in interface LibAPI
    • playSound

      public boolean playSound(org.bukkit.entity.Player p, String sound)
      Specified by:
      playSound in interface LibAPI