Class SpawnerDataDTO
java.lang.Object
github.nighter.smartspawner.api.data.SpawnerDataDTO
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
ConstructorsConstructorDescriptionSpawnerDataDTO(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
-
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 IDlocation- the spawner locationentityType- the entity typespawnedItemMaterial- the spawned item material for item spawnersstackSize- the current stack size (read-only)maxStackSize- the maximum stack sizebaseMaxStoragePages- the base storage pagesbaseMinMobs- the base minimum mobsbaseMaxMobs- the base maximum mobsbaseMaxStoredExp- the base maximum stored experiencebaseSpawnerDelay- 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
-