Class SpawnerDataDTO

java.lang.Object
github.nighter.smartspawner.api.data.SpawnerDataDTO

public class SpawnerDataDTO extends Object
Data Transfer Object containing read-only spawner information. This class provides read-only access to spawner data through the API. To modify spawner properties, use SpawnerDataModifier obtained from SmartSpawnerAPI.getSpawnerModifier(String).
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpawnerDataDTO(String spawnerId, org.bukkit.Location location, org.bukkit.entity.EntityType entityType, org.bukkit.Material spawnedItemMaterial, int stackSize, int maxStackSize, int baseMaxStoragePages, int baseMinMobs, int baseMaxMobs, long baseMaxStoredExp, long baseSpawnerDelay)
    Creates a new spawner data DTO.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this is an item spawner.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpawnerDataDTO

      public SpawnerDataDTO(String spawnerId, org.bukkit.Location location, org.bukkit.entity.EntityType entityType, org.bukkit.Material spawnedItemMaterial, int stackSize, int maxStackSize, int baseMaxStoragePages, int baseMinMobs, int baseMaxMobs, long baseMaxStoredExp, long baseSpawnerDelay)
      Creates a new spawner data DTO.
      Parameters:
      spawnerId - the unique spawner ID
      location - the spawner location
      entityType - the entity type
      spawnedItemMaterial - the spawned item material for item spawners
      stackSize - the current stack size (read-only)
      maxStackSize - the maximum stack size
      baseMaxStoragePages - the base storage pages
      baseMinMobs - the base minimum mobs
      baseMaxMobs - the base maximum mobs
      baseMaxStoredExp - the base maximum stored experience
      baseSpawnerDelay - the base spawner delay in ticks
  • Method Details

    • isItemSpawner

      public boolean isItemSpawner()
      Checks if this is an item spawner.
      Returns:
      true if spawner spawns items instead of entities