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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Version[]
     
    static org.bukkit.NamespacedKey
     
    static ArrayList<Mod>
     
    void
     
    static boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpigotModding

      public SpigotModding()
  • Method Details

    • onEnable

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

      public static ArrayList<Mod> 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

      public static boolean registerMod(Mod mod)
      Parameters:
      mod - The mod that should be registered. The mod MUST:
      1. Be built against a compatible API version.
      2. Use a unique namespace.
      3. Have all of its items registered under one namespace.
      Returns:
      Whether the mod registration was successful or not.
    • getCompatibleVersions

      public static Version[] getCompatibleVersions()
      Returns:
      The API versions that this plugin build is compatible with.