Class Moduler
java.lang.Object
ua.mcchickenstudio.opencreative.managers.modules.Moduler
- All Implemented Interfaces:
Manager, ModuleManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateModule(@NotNull org.bukkit.entity.Player owner, @NotNull DevPlanet devPlanet, @NotNull Set<org.bukkit.Location> locations) Creates a new module and registers it in base.voiddeleteModule(@NotNull Module module) Deletes module from files and base.static int@Nullable ModulegetModuleById(@NotNull String id) Returns module by its ID.Returns set of all registered modules in base.getName()Returns name of manager, that will be displayed by request in the logs.getPlayerModules(@NotNull UUID uuid) Returns modules, that were made by player with specified unique ID.voidinit()Initialization of manager.booleanChecks if manager is ready to work.voidregisterModule(@NotNull Module module) Register a module to base, so it will be visible in modules browser menu.
-
Constructor Details
-
Moduler
public Moduler()
-
-
Method Details
-
generateModuleId
public static int generateModuleId() -
getModuleById
Description copied from interface:ModuleManagerReturns module by its ID.- Specified by:
getModuleByIdin interfaceModuleManager- Parameters:
id- id to get module.- Returns:
- module - if found, or null - not exists.
-
getModules
Description copied from interface:ModuleManagerReturns set of all registered modules in base.- Specified by:
getModulesin interfaceModuleManager- Returns:
- set of modules.
-
getPlayerModules
Description copied from interface:ModuleManagerReturns modules, that were made by player with specified unique ID.- Specified by:
getPlayerModulesin interfaceModuleManager- Parameters:
uuid- unique id of player.- Returns:
- set of player created modules.
-
registerModule
Description copied from interface:ModuleManagerRegister a module to base, so it will be visible in modules browser menu.- Specified by:
registerModulein interfaceModuleManager- Parameters:
module- module to register
-
createModule
public void createModule(@NotNull @NotNull org.bukkit.entity.Player owner, @NotNull @NotNull DevPlanet devPlanet, @NotNull @NotNull Set<org.bukkit.Location> locations) Description copied from interface:ModuleManagerCreates a new module and registers it in base.- Specified by:
createModulein interfaceModuleManager- Parameters:
owner- owner of module.devPlanet- dev planet to parse executor locations.locations- set of location, that contains executors.
-
deleteModule
Description copied from interface:ModuleManagerDeletes module from files and base.- Specified by:
deleteModulein interfaceModuleManager- Parameters:
module- module to delete.
-
init
-
isEnabled
-
getName
-