Interface Spawner.Config

All Known Implementing Classes:
NoSpawner.Config, PrefabSpawner.Config
Enclosing interface:
Spawner

public static interface Spawner.Config
Asset-side factory for a Spawner.
  • Field Details

  • Method Details

    • create

      @Nonnull Spawner create()
      Creates a new Spawner instance from this config.
      Returns:
      a fresh spawner ready for use
    • validate

      default void validate(@Nonnull Validator validator)
      Called at asset-load time so the config can register any ContextKey values it defines or references.
      Parameters:
      validator - the validator to register key references with