Interface Component
public interface Component
Component
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Retrieves the array of dependencies required by this component.Returns the identifier associated with this Component.initBuilders
(Platform platform, String version) Initializes the builders for the given platform and version.void
initialize
(Platform platform, String version) Initializes the Component with the provided platform and version.void
initRegistries
(Platform platform, String version) Initializes the registries for the given platform and version.String[]
Retrieves an array of library names that this Component requires.boolean
Checks if this method supports the given platform and version.
-
Method Details
-
identifier
Returns the identifier associated with this Component.- Returns:
- the identifier string
-
supports
Checks if this method supports the given platform and version.- Parameters:
platform
- the Platform to check for supportversion
- the version string to check for support- Returns:
- true if the platform and version are supported, false otherwise
-
dependencies
String[] dependencies()Retrieves the array of dependencies required by this component.- Returns:
- an array of strings representing the dependencies needed for this component
-
libraries
Retrieves an array of library names that this Component requires.- Returns:
- an array of strings representing the required libraries
-
initialize
Initializes the Component with the provided platform and version.- Parameters:
platform
- the platform to initialize the Component forversion
- the Minecraft version string to initialize the Component with
-
initRegistries
Initializes the registries for the given platform and version.- Parameters:
platform
- the platform for which the registries are being initializedversion
- the Minecraft version of the platform
-
initBuilders
Initializes the builders for the given platform and version.- Parameters:
platform
- the platform to initialize the builders forversion
- the Minecraft version string to initialize the builders with- See Also:
-