Skip to content

Developer API

SmartSpawner provides a clean Java API that lets you interact with spawners, listen to events, and modify behavior from your own plugins.

Quick Navigation

Overview

The API is available via JitPack and follows a provider pattern:

java
SmartSpawnerAPI api = SmartSpawnerProvider.getAPI();

The API gives you access to:

  • Reading and modifying spawner properties (stack size, delay, range)
  • Accessing and modifying spawner storage contents
  • Creating and removing spawners programmatically
  • Listening to spawner events (place, break, generate, sell, etc.)
  • Registering custom GUI layout providers
  • Validating entity types and spawner data