Class AnimatedArchitectureSpigotPlatform
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.AnimatedArchitectureSpigotPlatform
- All Implemented Interfaces:
IAnimatedArchitecturePlatform
@Singleton
public final class AnimatedArchitectureSpigotPlatform
extends Object
implements IAnimatedArchitecturePlatform
The main class of the Animated Architecture Spigot plugin.
This class is responsible for initializing the various components of the plugin and to provide access to them for external plugins. Internally, this plugin uses dependency injection and as such does not use the getters provided by this class.
Refer to nl.pim16aap2.animatedarchitecture.spigot.core for more information on how to obtain the instance of
this class.
-
Method Summary
Modifier and TypeMethodDescriptionGets the instance of theIConfigfor this platform.Gets the instance of theIAnimatedArchitectureToolUtilfor this platform.Gets the instance of theIAnimatedBlockFactoryfor this platform.Returns the manager forIAnimatedBlockHooks.Returns the manager forIAnimationHooks.Gets the instance of theIAudioPlayerfor this platform.Gets the instance of theIBlockAnalyzerfor this platform.Returns the build data.Returns theIChunkLoader.Getter for the class loader of this project.Returns the command factory.Gets theDatabaseManager.Gets theDelayedCommandInputManagerto manageDelayedCommandInputRequests.Gets the instance of theIEconomyManagerfor this platform.Constructs a newIExecutor.Gets theHighlightedBlockSpawnerfor the current platform.Gets theLimitsManager.Gets theILocalizerused to localize strings.Gets the instance of theILocationFactoryfor this platform.Gets the implementation of aIMessageablefor the server.Gets the instance of theIPermissionsManagerfor this platform.Gets the instance of theIPlayerFactoryfor this platform.Gets thePowerBlockManagerinstance.org.semver4j.SemverGetter for the version of this project that is currently being used.Gets the instance of theIProtectionHookManagerfor this platform.Gets theIServerinstance.Gets theStructureActivityManagerinstance.Returns a new builder used to create newStructureAnimationRequestinstances.Gets theStructureRegistry.Returns the factory used to create newStructureRetrieverandStructureFinderinstances.Gets theStructureSpecificationManagerinstance.Gets theStructureTypeManagerinstance.Gets theToolUserManagerinstance.Gets the instance of theIWorldFactoryfor this platform.voidRestarts the plugin.voidShuts the plugin down.
-
Method Details
-
getStructureAnimationRequestBuilder
Description copied from interface:IAnimatedArchitecturePlatformReturns a new builder used to create newStructureAnimationRequestinstances.- Specified by:
getStructureAnimationRequestBuilderin interfaceIAnimatedArchitecturePlatform- Returns:
- A new builder used to create new
StructureAnimationRequestinstances.
-
getClassLoader
Description copied from interface:IAnimatedArchitecturePlatformGetter for the class loader of this project.- Specified by:
getClassLoaderin interfaceIAnimatedArchitecturePlatform- Returns:
- The class loader of this project.
-
restartPlugin
public void restartPlugin()Description copied from interface:IAnimatedArchitecturePlatformRestarts the plugin.- Specified by:
restartPluginin interfaceIAnimatedArchitecturePlatform
-
shutDownPlugin
public void shutDownPlugin()Description copied from interface:IAnimatedArchitecturePlatformShuts the plugin down.- Specified by:
shutDownPluginin interfaceIAnimatedArchitecturePlatform
-
getAnimatedArchitectureToolUtil
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIAnimatedArchitectureToolUtilfor this platform.- Specified by:
getAnimatedArchitectureToolUtilin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IAnimatedArchitectureToolUtilfor this platform.
-
getWorldFactory
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIWorldFactoryfor this platform.- Specified by:
getWorldFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IWorldFactoryfor this platform.
-
getLocationFactory
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theILocationFactoryfor this platform.- Specified by:
getLocationFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
ILocationFactoryfor this platform.
-
getAnimatedBlockFactory
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIAnimatedBlockFactoryfor this platform.- Specified by:
getAnimatedBlockFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IAnimatedBlockFactoryfor this platform.
-
getGuiFactory
-
getPlayerFactory
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIPlayerFactoryfor this platform.- Specified by:
getPlayerFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IPlayerFactoryfor this platform.
-
getStructureRetrieverFactory
Description copied from interface:IAnimatedArchitecturePlatformReturns the factory used to create newStructureRetrieverandStructureFinderinstances.- Specified by:
getStructureRetrieverFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The factory used to create new
StructureRetrieverandStructureFinderinstances.
-
getAnimatedArchitectureConfig
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIConfigfor this platform.- Specified by:
getAnimatedArchitectureConfigin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IConfigfor this platform.
-
getAudioPlayer
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIAudioPlayerfor this platform.- Specified by:
getAudioPlayerin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IAudioPlayerfor this platform.
-
getBlockAnalyzer
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIBlockAnalyzerfor this platform.- Specified by:
getBlockAnalyzerin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IBlockAnalyzerfor this platform.
-
getExecutor
Description copied from interface:IAnimatedArchitecturePlatformConstructs a newIExecutor.- Specified by:
getExecutorin interfaceIAnimatedArchitecturePlatform- Returns:
- A new
IExecutor.
-
getHighlightedBlockSpawner
Description copied from interface:IAnimatedArchitecturePlatformGets theHighlightedBlockSpawnerfor the current platform.- Specified by:
getHighlightedBlockSpawnerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
HighlightedBlockSpawnerfor the current platform.
-
getLocalizer
Description copied from interface:IAnimatedArchitecturePlatformGets theILocalizerused to localize strings.- Specified by:
getLocalizerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
ILocalizerregistered for this platform.
-
getMessageableServer
Description copied from interface:IAnimatedArchitecturePlatformGets the implementation of aIMessageablefor the server.- Specified by:
getMessageableServerin interfaceIAnimatedArchitecturePlatform- Returns:
- The implementation of a
IMessageablefor the server.
-
getServer
Description copied from interface:IAnimatedArchitecturePlatformGets theIServerinstance.- Specified by:
getServerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
IServerinstance.
-
getStructureRegistry
Description copied from interface:IAnimatedArchitecturePlatformGets theStructureRegistry.- Specified by:
getStructureRegistryin interfaceIAnimatedArchitecturePlatform- Returns:
- The
StructureRegistry.
-
getChunkLoader
Description copied from interface:IAnimatedArchitecturePlatformReturns theIChunkLoader.- Specified by:
getChunkLoaderin interfaceIAnimatedArchitecturePlatform- Returns:
- The
IChunkLoader.
-
getDatabaseManager
Description copied from interface:IAnimatedArchitecturePlatformGets theDatabaseManager.- Specified by:
getDatabaseManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
DatabaseManager.
-
getStructureActivityManager
Description copied from interface:IAnimatedArchitecturePlatformGets theStructureActivityManagerinstance.- Specified by:
getStructureActivityManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
StructureActivityManagerinstance.
-
getStructureSpecificationManager
Description copied from interface:IAnimatedArchitecturePlatformGets theStructureSpecificationManagerinstance.- Specified by:
getStructureSpecificationManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
StructureSpecificationManagerinstance.
-
getStructureTypeManager
Description copied from interface:IAnimatedArchitecturePlatformGets theStructureTypeManagerinstance.- Specified by:
getStructureTypeManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
StructureTypeManagerinstance.
-
getToolUserManager
Description copied from interface:IAnimatedArchitecturePlatformGets theToolUserManagerinstance.- Specified by:
getToolUserManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
ToolUserManagerinstance.
-
getDelayedCommandInputManager
Description copied from interface:IAnimatedArchitecturePlatformGets theDelayedCommandInputManagerto manageDelayedCommandInputRequests.- Specified by:
getDelayedCommandInputManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
DelayedCommandInputManagerregistered by the platform.
-
getAnimatedBlockHookManager
Description copied from interface:IAnimatedArchitecturePlatformReturns the manager forIAnimatedBlockHooks.- Specified by:
getAnimatedBlockHookManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The manager for
IAnimatedBlockHooks.
-
getAnimationHookManager
Description copied from interface:IAnimatedArchitecturePlatformReturns the manager forIAnimationHooks.- Specified by:
getAnimationHookManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The manager for
IAnimationHooks.
-
getPowerBlockManager
Description copied from interface:IAnimatedArchitecturePlatformGets thePowerBlockManagerinstance.- Specified by:
getPowerBlockManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
PowerBlockManagerinstance.
-
getEconomyManager
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIEconomyManagerfor this platform.- Specified by:
getEconomyManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IEconomyManagerfor this platform.
-
getPermissionsManager
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIPermissionsManagerfor this platform.- Specified by:
getPermissionsManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IPermissionsManagerfor this platform.
-
getProtectionHookManager
Description copied from interface:IAnimatedArchitecturePlatformGets the instance of theIProtectionHookManagerfor this platform.- Specified by:
getProtectionHookManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The instance of the
IProtectionHookManagerfor this platform.
-
getLimitsManager
Description copied from interface:IAnimatedArchitecturePlatformGets theLimitsManager.- Specified by:
getLimitsManagerin interfaceIAnimatedArchitecturePlatform- Returns:
- The
LimitsManager.
-
getCommandFactory
Description copied from interface:IAnimatedArchitecturePlatformReturns the command factory.- Specified by:
getCommandFactoryin interfaceIAnimatedArchitecturePlatform- Returns:
- The command factory.
-
getAnimatedArchitectureEventFactory
-
getHeadManager
-
getPowerBlockRedstoneManager
-
getLocalizationManager
-
getCommandListener
-
getBuildData
Description copied from interface:IAnimatedArchitecturePlatformReturns the build data.This provides access to items such as the commit hash, the build id, etc.
- Specified by:
getBuildDatain interfaceIAnimatedArchitecturePlatform- Returns:
- The build data.
-
getProjectVersion
public org.semver4j.Semver getProjectVersion()Description copied from interface:IAnimatedArchitecturePlatformGetter for the version of this project that is currently being used.- Specified by:
getProjectVersionin interfaceIAnimatedArchitecturePlatform- Returns:
- The current version of this project.
-