Interface PylonAddon
-
- All Implemented Interfaces:
-
net.kyori.adventure.key.Keyed
,org.bukkit.Keyed
public interface PylonAddon implements Keyed
Welcome to the place where it all begins: the Pylon addon!
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PylonAddon.Companion
-
Method Summary
Modifier and Type Method Description NamespacedKey
getKey()
Unit
registerWithPylon()
Must be called as the first thing in your plugin's onEnable
Config
mergeGlobalConfig(String from, String to)
Merges config from addons to the Pylon config directory. abstract JavaPlugin
getJavaPlugin()
Must return this
abstract Set<Locale>
getLanguages()
The set of Locales this addon has translations for abstract Material
getMaterial()
The material to represent this addon in menus TranslatableComponent
getDisplayName()
Boolean
suppressAddonNameWarning()
-
-
Method Detail
-
getKey
NamespacedKey getKey()
-
registerWithPylon
@ApiStatus.NonExtendable() Unit registerWithPylon()
Must be called as the first thing in your plugin's
onEnable
-
mergeGlobalConfig
Config mergeGlobalConfig(String from, String to)
Merges config from addons to the Pylon config directory. Used for stuff like item settings and language files.
Returns the configuration read and merged from the resource. If the file does not exist in the resource but already exists at the to path, reads and returns the file at the to path.
- Parameters:
from
- The path to the config file.- Returns:
The merged config
-
getJavaPlugin
abstract JavaPlugin getJavaPlugin()
Must return
this
-
getLanguages
abstract Set<Locale> getLanguages()
The set of Locales this addon has translations for
-
getMaterial
abstract Material getMaterial()
The material to represent this addon in menus
-
getDisplayName
TranslatableComponent getDisplayName()
-
suppressAddonNameWarning
Boolean suppressAddonNameWarning()
-
-
-
-