Package io.github.pylonmc.pylon.core
Object PylonCore
-
- All Implemented Interfaces:
-
io.github.pylonmc.pylon.core.addon.PylonAddon,io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Keyed,net.kyori.adventure.key.Namespaced,org.bukkit.Keyed,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class PylonCore extends JavaPlugin implements PylonAddon
The one and only Pylon Core plugin!
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringEXPECTED_MINECRAFT_VERSIONpublic final static PylonCoreINSTANCE
-
Method Summary
Modifier and Type Method Description voidonLoad()voidonEnable()voidonDisable()PylonCoregetJavaPlugin()Must return thisMaterialgetMaterial()The material to represent this addon in menus. Set<Locale>getLanguages()The set of Locales this addon has translations for. TranslatableComponentgetDisplayName()The name used to represent this addon in the item tooltips. BooleansuppressAddonNameWarning()If you use something besides the default pylon.<your-addon-key>.addontranslation key for the addon name, set this to true to suppress warnings about the "missing" key.-
Methods inherited from class org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getDefaultBiomeProvider, getDefaultWorldGenerator, getLog4JLogger, getResource, getSLF4JLogger, reloadConfig, saveConfig, saveDefaultConfig, saveResource -
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDataFolder, getDescription, getLifecycleManager, getLogger, getPluginLoader, getPluginMeta, getServer, init, init, isEnabled, isNaggable, registerCommand, registerCommand, registerCommand, registerCommand, setNaggable -
Methods inherited from class org.bukkit.command.CommandExecutor
onCommand -
Methods inherited from class org.bukkit.command.TabCompleter
onTabComplete -
Methods inherited from class net.kyori.adventure.key.Namespaced
namespace -
Methods inherited from class io.github.pylonmc.pylon.core.addon.PylonAddon
getKey, getKey, registerWithPylon -
Methods inherited from class net.kyori.adventure.key.Keyed
key -
Methods inherited from class org.bukkit.plugin.PluginBase
getName -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onLoad
void onLoad()
-
onEnable
void onEnable()
-
onDisable
void onDisable()
-
getJavaPlugin
PylonCore getJavaPlugin()
Must return
this
-
getMaterial
Material getMaterial()
The material to represent this addon in menus.
-
getLanguages
Set<Locale> getLanguages()
The set of Locales this addon has translations for.
-
getDisplayName
TranslatableComponent getDisplayName()
The name used to represent this addon in the item tooltips. By default, a blue italic
pylon.<your-addon-key>.addontranslation key.
-
suppressAddonNameWarning
Boolean suppressAddonNameWarning()
If you use something besides the default
pylon.<your-addon-key>.addontranslation key for the addon name, set this to true to suppress warnings about the "missing" key.
-
-
-
-