Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addStateListener(BiConsumer<ExpansionClassLoader, ExpansionState>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Add a new state listener
- apply(JarFile) - Method in interface me.hsgamer.hscore.expansion.common.factory.MapExpansionDescriptionLoader
- applyAsMap(InputStream) - Method in class me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
-
Load the information map from the input stream
- applyAsMap(JarFile) - Method in class me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
- applyAsMap(JarFile) - Method in interface me.hsgamer.hscore.expansion.common.factory.MapExpansionDescriptionLoader
-
Load the information map from the jar file
C
- call(Class<T>, Consumer<T>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Call the consumer for all enabled expansions that match the specific class
- call(Consumer<Expansion>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Call the consumer for all enabled expansions
- classLoaders - Variable in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
The class loader map keyed expansion's id, valued expansion's class loader
- clearExpansions() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Clear all expansions
D
- DEFAULT_EXPANSION_FACTORY - Static variable in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
The default factory to create a new instance of the main class using the no-args constructor
- DISABLED - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
- disableExpansions() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Disable all enabled expansions
- DISABLING - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
E
- ENABLED - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
- enableExpansions() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Enable all loaded expansions
- ENABLING - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
- ERROR - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
- Expansion - Interface in me.hsgamer.hscore.expansion.common
-
An interface for an expansion instance
- ExpansionClassLoader - Class in me.hsgamer.hscore.expansion.common
-
The class loader of the expansion
- ExpansionClassLoader(ExpansionManager, File, ExpansionDescription, ClassLoader) - Constructor for class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Create a new class loader
- ExpansionClassLoaderException - Exception in me.hsgamer.hscore.expansion.common.exception
-
The exception thrown when the
ExpansionClassLoaderthrows an exception - ExpansionClassLoaderException(ExpansionClassLoader, String, Throwable) - Constructor for exception me.hsgamer.hscore.expansion.common.exception.ExpansionClassLoaderException
- ExpansionDescription - Interface in me.hsgamer.hscore.expansion.common
-
The description for the
Expansion - ExpansionManager - Class in me.hsgamer.hscore.expansion.common
-
A class that manages all
Expansions - ExpansionManager(File, Function<JarFile, ExpansionDescription>) - Constructor for class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Create a new expansion manager
- ExpansionManager(File, Function<JarFile, ExpansionDescription>, ClassLoader) - Constructor for class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Create a new expansion manager
- ExpansionState - Enum Class in me.hsgamer.hscore.expansion.common
-
The state of the
Expansion
G
- getClassLoaders() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get all loaded expansion class loaders
- getData() - Method in interface me.hsgamer.hscore.expansion.common.ExpansionDescription
-
Get the extra data of the expansion
- getDescription() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the expansion's description
- getEnabledExpansions() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get all enabled expansions
- getExpansion() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the expansion
- getExpansion(String) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get the loaded expansion
- getExpansionClassLoader() - Method in exception me.hsgamer.hscore.expansion.common.exception.ExpansionClassLoaderException
-
Get the
ExpansionClassLoader - getExpansionClassLoader(String) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get the loaded expansion class loader
- getExpansionOptional() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the expansion if it's initialized
- getExpansionsDir() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get the expansion directory
- getFile() - Method in exception me.hsgamer.hscore.expansion.common.exception.InvalidExpansionFileException
-
Get the file
- getFile() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the expansion jar
- getMainClass() - Method in interface me.hsgamer.hscore.expansion.common.ExpansionDescription
-
Get the main class of the expansion
- getManager() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the expansion manager
- getName() - Method in interface me.hsgamer.hscore.expansion.common.ExpansionDescription
-
Get the name of the expansion
- getParentClassLoader() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Get the parent class loader
- getState() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the state of the expansion
- getThrowable() - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Get the throwable if the expansion is in
ExpansionState.ERROR - getVersion() - Method in interface me.hsgamer.hscore.expansion.common.ExpansionDescription
-
Get the version of the expansion
I
- InputStreamExpansionDescriptionLoader - Class in me.hsgamer.hscore.expansion.common.factory
-
The factory that loads the
ExpansionDescriptionfrom theInputStreamof the jar file - InputStreamExpansionDescriptionLoader(String) - Constructor for class me.hsgamer.hscore.expansion.common.factory.InputStreamExpansionDescriptionLoader
-
Create a new
InputStreamExpansionDescriptionLoader - InvalidExpansionDescriptionException - Exception in me.hsgamer.hscore.expansion.common.exception
-
The exception when the expansion description is invalid
- InvalidExpansionDescriptionException(String) - Constructor for exception me.hsgamer.hscore.expansion.common.exception.InvalidExpansionDescriptionException
- InvalidExpansionDescriptionException(String, Throwable) - Constructor for exception me.hsgamer.hscore.expansion.common.exception.InvalidExpansionDescriptionException
- InvalidExpansionFileException - Exception in me.hsgamer.hscore.expansion.common.exception
-
The exception thrown when the file is not a valid
Expansionfile - InvalidExpansionFileException(String, File, Throwable) - Constructor for exception me.hsgamer.hscore.expansion.common.exception.InvalidExpansionFileException
L
- loadClass(String, boolean) - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
- LOADED - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
- loadExpansions() - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Load all expansions from the expansion directory.
- LOADING - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
M
- MapExpansionDescriptionLoader - Interface in me.hsgamer.hscore.expansion.common.factory
-
The factory that loads the
ExpansionDescriptionfrom the information map of the jar file. - me.hsgamer.hscore.expansion.common - package me.hsgamer.hscore.expansion.common
-
Contains the base classes to work on an expansion system
- me.hsgamer.hscore.expansion.common.exception - package me.hsgamer.hscore.expansion.common.exception
-
Contains the exceptions for the expansion manager
- me.hsgamer.hscore.expansion.common.factory - package me.hsgamer.hscore.expansion.common.factory
-
Contains the base classes for the expansion factory
O
- onDisable() - Method in interface me.hsgamer.hscore.expansion.common.Expansion
-
Called when disabling the expansion
- onEnable() - Method in interface me.hsgamer.hscore.expansion.common.Expansion
-
Called when enabling the expansion
- onLoad() - Method in interface me.hsgamer.hscore.expansion.common.Expansion
-
Called when loading the expansion
R
- removeStateListener(BiConsumer<ExpansionClassLoader, ExpansionState>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Remove a state listener
S
- setExceptionHandler(Consumer<Throwable>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Set the exception handler
- setExpansionFactory(Function<ExpansionClassLoader, Expansion>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Set the factory to create
ExpansionfromExpansionClassLoader - setSortAndFilterFunction(UnaryOperator<Map<String, ExpansionClassLoader>>) - Method in class me.hsgamer.hscore.expansion.common.ExpansionManager
-
Set the function to sort and filter the
ExpansionClassLoaders - setThrowable(Throwable) - Method in class me.hsgamer.hscore.expansion.common.ExpansionClassLoader
-
Set the throwable if the expansion is in
ExpansionState.ERROR - simple(String, String, String, Map<String, Object>) - Static method in interface me.hsgamer.hscore.expansion.common.ExpansionDescription
-
Create a simple
ExpansionDescription
U
- UNKNOWN - Enum constant in enum class me.hsgamer.hscore.expansion.common.ExpansionState
V
- valueOf(String) - Static method in enum class me.hsgamer.hscore.expansion.common.ExpansionState
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class me.hsgamer.hscore.expansion.common.ExpansionState
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form