Class ElytrasOfFire

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.woftnw.eof.ElytrasOfFire
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, net.kyori.adventure.key.Namespaced, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class ElytrasOfFire extends org.bukkit.plugin.java.JavaPlugin
The main ElytrasOfFire plugin class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<org.bukkit.NamespacedKey, Class<? extends AbilityEffect>>
    Get a copy of the ability effect type map.
    Get the DialogManager instance.
    Get the PlayerUtility instance.
    Get the TribeManager instance.
    void
     
    void
     
    void
    registerAbilityEffectType(@NonNull org.bukkit.NamespacedKey key, @NonNull Class<? extends AbilityEffect> abilityEffectClass)
    Register an ability effect type.

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode, namespace

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Constructor Details

    • ElytrasOfFire

      public ElytrasOfFire()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • registerAbilityEffectType

      public void registerAbilityEffectType(@NonNull org.bukkit.NamespacedKey key, @NonNull Class<? extends AbilityEffect> abilityEffectClass)
      Register an ability effect type. This will make it available to the feature loader. For example:
      // Get the ElytrasOfFire plugin.
      RegisteredServiceProvider<ElytrasOfFire> provider = Bukkit.getServicesManager().getRegistration(ElytrasOfFire.class);
      if (provider != null) {
          ElytrasOfFire eof = provider.getProvider();
          // Create a key for the effect type.
          NamespacedKey key = new NamespacedKey(this, "my_custom_ability_effect");
          // Register the effect type. In this case, MyCustomAbilityEffect is a class that extends AbilityEffect.
          eof.registerAbilityEffectType(key, MyCustomAbilityEffect.class);
      }
      
      Parameters:
      key - The namespaced key of the ability effect type. The namespace should be of the origin plugin, not ElytrasOfFire.
      abilityEffectClass - The class of the ability effect which extends AbilityEffect.
      See Also:
    • getAbilityEffectTypes

      public Map<org.bukkit.NamespacedKey, Class<? extends AbilityEffect>> getAbilityEffectTypes()
      Get a copy of the ability effect type map.
      Returns:
      An unmodifiable map of keys and ability effect classes that have been registered.
    • getTribeManager

      public TribeManager getTribeManager()
      Get the TribeManager instance.
      Returns:
      The TribeManager instance.
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getPlayerUtility

      public PlayerUtility getPlayerUtility()
      Get the PlayerUtility instance.
      Returns:
      The PlayerUtility instance.
    • getDialogManager

      public DialogManager getDialogManager()
      Get the DialogManager instance.
      Returns:
      The DialogManager instance.