Class AddonRegistration
java.lang.Object
fr.robie.machineengine.api.addon.AddonRegistration
What an addon submits to MachineEngine before registration (ARCHITECTURE.md ยง8.3): its identity,
the API range and other addons it needs, and the callback that registers its content.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull AddonIdaddon()@NotNull VersionRangeapiRange()static @NotNull AddonRegistration.Builderstatic @NotNull AddonRegistration.Builder@NotNull Consumer<RegistrationContext> callback()@NotNull List<AddonDependency> @NotNull Versionversion()
-
Method Details
-
builder
@NotNull public static @NotNull AddonRegistration.Builder builder(@NotNull @NotNull AddonId addon, @NotNull @NotNull Version version) -
builder
@NotNull public static @NotNull AddonRegistration.Builder builder(@NotNull @NotNull String addon, @NotNull @NotNull String version) -
addon
-
version
-
apiRange
-
dependencies
-
callback
-