Class PrefabSpawner.Config

java.lang.Object
com.hypixel.hytale.builtin.adventure.worldevents.condition.spawner.PrefabSpawner.Config
All Implemented Interfaces:
Spawner.Config
Enclosing class:
PrefabSpawner

public static class PrefabSpawner.Config extends Object implements Spawner.Config
  • Field Details

  • Constructor Details

    • Config

      public Config()
  • Method Details

    • create

      @Nonnull public Spawner create()
      Description copied from interface: Spawner.Config
      Creates a new Spawner instance from this config.
      Specified by:
      create in interface Spawner.Config
      Returns:
      a fresh spawner ready for use
    • validate

      public void validate(@Nonnull Validator validator)
      Description copied from interface: Spawner.Config
      Called at asset-load time so the config can register any ContextKey values it defines or references.
      Specified by:
      validate in interface Spawner.Config
      Parameters:
      validator - the validator to register key references with