Package me.mythicalflame.spigotmodding
Class SpigotModding
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.mythicalflame.spigotmodding.SpigotModding
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public final class SpigotModding
extends org.bukkit.plugin.java.JavaPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Version[]
static org.bukkit.NamespacedKey
void
onEnable()
static boolean
registerMod
(Mod mod) Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
SpigotModding
public SpigotModding()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
getRegisteredMods
- Returns:
- An ArrayList of all registered Mods.
-
getContentKey
public static org.bukkit.NamespacedKey getContentKey()- Returns:
- The NamespacedKey that this plugin uses to mark whether an item is custom.
-
registerMod
- Parameters:
mod
- The mod that should be registered. The mod MUST:- Be built against a compatible API version.
- Use a unique namespace.
- Have all of its items registered under one namespace.
- Returns:
- Whether the mod registration was successful or not.
-
getCompatibleVersions
- Returns:
- The API versions that this plugin build is compatible with.
-