-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFlyLib.Companion
-
Method Summary
Modifier and Type Method Description abstract <T extends Event> Unitlisten(Class<T> clazz, ListenerAction<T> action)Listens to the specified event with Event Priority. abstract <T extends Event> Unitlisten(Class<T> clazz, EventPriority priority, ListenerAction<T> action)Listens to the specified event with the specified priority. abstract UnitloadConfig()abstract UnitsaveConfig()abstract UnitupdateConfig(Function1<T, Unit> action)abstract JavaPlugingetPlugin()The original plugin that called FlyLib abstract CommandHandler<T>getCommandHandler()Class that manages commands abstract TgetConfig()-
-
Method Detail
-
listen
abstract <T extends Event> Unit listen(Class<T> clazz, ListenerAction<T> action)
Listens to the specified event with Event Priority.NORMAL
-
listen
abstract <T extends Event> Unit listen(Class<T> clazz, EventPriority priority, ListenerAction<T> action)
Listens to the specified event with the specified priority.
-
loadConfig
abstract Unit loadConfig()
-
saveConfig
abstract Unit saveConfig()
-
updateConfig
abstract Unit updateConfig(Function1<T, Unit> action)
-
getPlugin
abstract JavaPlugin getPlugin()
The original plugin that called FlyLib
-
getCommandHandler
abstract CommandHandler<T> getCommandHandler()
Class that manages commands
-
-
-
-