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!
-
-
Method Summary
Modifier and Type Method Description default NamespacedKeygetKey()default voidregisterWithPylon()Must be called as the first thing in your plugin's onEnableJavaPlugingetJavaPlugin()Must return thisSet<Locale>getLanguages()The set of Locales this addon has translations for. MaterialgetMaterial()The material to represent this addon in menus. default TranslatableComponentgetDisplayName()The name used to represent this addon in the item tooltips. default 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.-
-
Method Detail
-
getKey
default NamespacedKey getKey()
-
registerWithPylon
@ApiStatus.NonExtendable() default void registerWithPylon()
Must be called as the first thing in your plugin's
onEnable
-
getJavaPlugin
JavaPlugin getJavaPlugin()
Must return
this
-
getLanguages
Set<Locale> getLanguages()
The set of Locales this addon has translations for.
-
getMaterial
Material getMaterial()
The material to represent this addon in menus.
-
getDisplayName
default 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
default 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.
-
-
-
-