Class LoadedArenaManager<T,A extends Arena & ManagedArena<T>>
java.lang.Object
io.github.projectunified.minigamecore.base.FeatureUnit
io.github.projectunified.minigamecore.manager.ArenaManager<T,A>
io.github.projectunified.minigamecore.manager.extra.LoadedArenaManager<T,A>
- Type Parameters:
T- the type of the identifier of the arenaA- the type of the arena
- All Implemented Interfaces:
Initializer
public abstract class LoadedArenaManager<T,A extends Arena & ManagedArena<T>>
extends ArenaManager<T,A>
The
ArenaManager with loaded arenas on initialization-
Constructor Summary
ConstructorsConstructorDescriptionLoadedArenaManager(FeatureUnit... parent) Create a new arena managerLoadedArenaManager(List<FeatureUnit> parentList) Create a new arena manager -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Init the objectLoad the arenasvoidonArenaFailToLoad(A arena) Called when the arena fails to loadvoidonArenaSucceedToLoad(A arena) Called when the arena succeeds to loadvoidReload the arenasMethods inherited from class io.github.projectunified.minigamecore.manager.ArenaManager
addArena, clear, clearAllArenas, containsArena, createArena, getAllArenas, getArena, getArenaMap, postInit, removeArenaMethods inherited from class io.github.projectunified.minigamecore.base.FeatureUnit
getFeature, getFeatures, getGameState, getGameStates, getParent, getParentList, loadFeatures, loadGameStates
-
Constructor Details
-
LoadedArenaManager
Create a new arena manager- Parameters:
parentList- the parentFeatureUnitlist
-
LoadedArenaManager
Create a new arena manager- Parameters:
parent- the parentFeatureUnit
-
-
Method Details
-
init
public void init()Description copied from interface:InitializerInit the object- Specified by:
initin interfaceInitializer- Overrides:
initin classFeatureUnit
-
loadArenas
Load the arenas- Returns:
- the arenas
-
reloadArena
public void reloadArena()Reload the arenas -
onArenaFailToLoad
Called when the arena fails to load- Parameters:
arena- the arena
-
onArenaSucceedToLoad
Called when the arena succeeds to load- Parameters:
arena- the arena
-