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 -
Method Summary
Modifier and TypeMethodDescriptionMap<org.bukkit.NamespacedKey, Class<? extends AbilityEffect>> Get a copy of the ability effect type map.Get theDialogManagerinstance.Get thePlayerUtilityinstance.Get theTribeManagerinstance.voidvoidonEnable()voidregisterAbilityEffectType(@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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode, namespaceMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
ElytrasOfFire
public ElytrasOfFire()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.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 extendsAbilityEffect.- See Also:
-
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
Get theTribeManagerinstance.- Returns:
- The
TribeManagerinstance.
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getPlayerUtility
Get thePlayerUtilityinstance.- Returns:
- The
PlayerUtilityinstance.
-
getDialogManager
Get theDialogManagerinstance.- Returns:
- The
DialogManagerinstance.
-