Class MachineEngineAccess

java.lang.Object
fr.robie.machineengine.api.MachineEngineAccess

@Internal public final class MachineEngineAccess extends Object
Holds the registrations submitted before the engine starts and the running engine afterwards. The only static mutable state of MachineEngine (ยง8.3). Addons use MachineEngine.register(AddonRegistration) and MachineEngine.get(); the platform uses the internal methods.
  • Method Details

    • installSchedulers

      @Internal public static void installSchedulers(@Nullable @Nullable Function<org.bukkit.plugin.Plugin, Scheduler> perPlugin)
      The platform's schedulers, one per plugin (D35); installed in onLoad.
    • installConfig

      @Internal public static void installConfig(@Nullable @Nullable ConfigValues loaded)
      The loaded config.yml; installed in onLoad, before addons register.
    • closeRegistration

      @Internal @NotNull public static @NotNull List<AddonRegistration> closeRegistration()
      Closes registration and hands the submitted registrations to the platform.
    • install

      @Internal public static void install(@Nullable @Nullable MachineEngine running)
    • reset

      @Internal public static void reset()
      Resets everything, e.g. when the plugin is disabled.