Package net.minestom.server.extensions
Class DiscoveredExtension
java.lang.Object
net.minestom.server.extensions.DiscoveredExtension
Represents an extension from an `extension.json` that is capable of powering an Extension object.
This has no constructor as its properties are set via GSON.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
Static logger for this class.static final String
The regex that this name must pass. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String[]
@NotNull ExtensionClassLoader
@NotNull Path
@NotNull String[]
@NotNull String
@NotNull com.google.gson.JsonObject
getMeta()
@NotNull String
getName()
@Nullable File
@NotNull String
void
setDataDirectory
(@NotNull Path dataDirectory) void
setOriginalJar
(@Nullable File file) static void
verifyIntegrity
(@NotNull DiscoveredExtension extension) Ensures that all properties of this extension are properly set if they aren't
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGERStatic logger for this class. -
NAME_REGEX
The regex that this name must pass. If it doesn't, it will not be accepted.- See Also:
-
-
Constructor Details
-
DiscoveredExtension
public DiscoveredExtension()
-
-
Method Details
-
getName
-
getEntrypoint
-
getVersion
-
getAuthors
-
getDependencies
-
getExternalDependencies
-
setOriginalJar
-
getOriginalJar
-
getDataDirectory
-
setDataDirectory
-
getClassLoader
-
verifyIntegrity
Ensures that all properties of this extension are properly set if they aren't- Parameters:
extension
- The extension to verify
-
getMeta
@NotNull public @NotNull com.google.gson.JsonObject getMeta()
-