Interface MagicUtilsConsumerRuntimeView


public interface MagicUtilsConsumerRuntimeView
Live view of a shared-runtime consumer's mutable state. Unlike the static metadata captured at registration (name, version, authors, …), these values change as the consumer initializes: commands are registered on server start, components are added while the runtime is built, and the runtime may later be closed. The registry keeps a reference to this view and reads it lazily when a MagicUtilsConsumerInfo snapshot is requested, so /magicutils mods always reflects the current state rather than a frozen early snapshot.

On loaders where every consumer shares one classloader (Fabric, NeoForge) the view simply closes over the consumer's MagicRuntime and command registry. On Bukkit, where the bundle plugin and consumers live in separate classloaders, the reflective bridge supplies an equivalent view that rebuilds the payload on demand.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the runtime is closed right now.
    boolean
    Whether the diagnostics service is present right now.
    int
    Named component count in the runtime right now.
    Named component keys right now (order-independent; callers sort for display).
    int
    Number of registered root commands right now (0 when commands are disabled).
    int
    Typed component count in the runtime right now.
  • Method Details

    • rootCommandCount

      int rootCommandCount()
      Number of registered root commands right now (0 when commands are disabled).
    • typedComponentCount

      int typedComponentCount()
      Typed component count in the runtime right now.
    • namedComponentCount

      int namedComponentCount()
      Named component count in the runtime right now.
    • namedComponentNames

      List<String> namedComponentNames()
      Named component keys right now (order-independent; callers sort for display).
    • diagnosticsEnabled

      boolean diagnosticsEnabled()
      Whether the diagnostics service is present right now.
    • closed

      boolean closed()
      Whether the runtime is closed right now.