Class MagicUtilsConsumerPayloads
java.lang.Object
dev.ua.theroer.magicutils.bootstrap.MagicUtilsConsumerPayloads
Builds the platform-independent shared-runtime registry payload from a
MagicRuntime. Both the Bukkit and Fabric registries call this so the
component/count/platform-label extraction is written once. Platform-specific
bits (plugin/mod metadata, whether diagnostics/commands are on) are passed in
by the caller, keeping core free of Bukkit/Fabric and diagnostics types.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringplatformTypeLabel(MagicRuntime runtime) Human-readable adapter label derived from the runtime's platform class.runtimePayload(MagicRuntime runtime, String pluginName, String version, String mainClass, @Nullable String description, @Nullable String website, List<String> authors, boolean commandsEnabled, @Nullable String permissionPrefix, int rootCommandCount, boolean diagnosticsEnabled, Instant connectedAt) Assembles the registry payload for a consumer runtime.
-
Method Details
-
runtimePayload
public static Map<String,Object> runtimePayload(MagicRuntime runtime, String pluginName, String version, String mainClass, @Nullable @Nullable String description, @Nullable @Nullable String website, List<String> authors, boolean commandsEnabled, @Nullable @Nullable String permissionPrefix, int rootCommandCount, boolean diagnosticsEnabled, Instant connectedAt) Assembles the registry payload for a consumer runtime. Keys matchMagicUtilsConsumerInfo'sKEY_*constants so the bundle side can decode it withMagicUtilsConsumerInfo.fromPayload(Map, String, String, String, String, String, List). -
platformTypeLabel
Human-readable adapter label derived from the runtime's platform class.
-