getReason

public CreatureSpawnEvent.SpawnReason getReason()

Gets the reason for the Entity getting spawned

Return

Reason for the Entity getting spawned